From cc562a451e5e2c7b953f632a667101a51cd33219 Mon Sep 17 00:00:00 2001 From: Hornwitser Date: Tue, 15 Jun 2021 14:25:45 +0200 Subject: [PATCH] Fix create instance modal Fix copy and paste bug in the name check for the create instance moddal. --- packages/web_ui/src/components/InstancesPage.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/web_ui/src/components/InstancesPage.jsx b/packages/web_ui/src/components/InstancesPage.jsx index bab926ba..71fb90a4 100644 --- a/packages/web_ui/src/components/InstancesPage.jsx +++ b/packages/web_ui/src/components/InstancesPage.jsx @@ -21,7 +21,8 @@ function CreateInstanceButton(props) { async function createInstance() { let values = form.getFieldsValue(); if (!values.instanceName) { - form.setFields([{ name: "mapGenSettings", errors: ["Name is required"] }]); + form.setFields([{ name: "instanceName", errors: ["Name is required"] }]); + return; } let instanceConfig = new libConfig.InstanceConfig("control");