mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-12 07:04:52 +09:00
Fix unassigning instances broken in Web UI
This commit is contained in:
1 parent
880216b775
commit
b976de926b
1 file changed
+3
-3
@@ -26,14 +26,14 @@ export default function AssignInstanceModal(props: AssignInstanceModalProps) {
|
||||
let control = useContext(ControlContext);
|
||||
|
||||
function handleAssign() {
|
||||
let hostId = form.getFieldValue("host");
|
||||
let hostId: number | string | undefined = form.getFieldValue("host");
|
||||
if (hostId === undefined) {
|
||||
setOpen(false);
|
||||
return;
|
||||
}
|
||||
|
||||
if (hostId === "null") {
|
||||
hostId = null;
|
||||
if (typeof hostId === "string") {
|
||||
hostId = undefined;
|
||||
}
|
||||
|
||||
setApplying(true);
|
||||
|
||||
Reference in new issue
Block a user