Fix create instance modal

Fix copy and paste bug in the name check for the create instance moddal.
This commit is contained in:
Hornwitser committed 2021-06-15 14:25:45 +02:00
1 parent 782e93f4a1
commit cc562a451e
1 file changed
+2 -1
@@ -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");