mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-13 15:14:52 +09:00
Fix create instance modal
Fix copy and paste bug in the name check for the create instance moddal.
This commit is contained in:
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");
|
||||
|
||||
Reference in new issue
Block a user