fix check optional values
This commit is contained in:
1 parent
89f2ffdbe6
commit
d462958c1b
1 file changed
+2
@@ -668,6 +668,8 @@ const NodeInspector: FC = () => {
|
||||
} catch (e) {
|
||||
return Promise.reject(new Error(t("node.invalidValue")));
|
||||
}
|
||||
} else if (value === null && !required) {
|
||||
value = undefined;
|
||||
}
|
||||
if (!checkNodeArgValue(editingNode.data, arg, value)) {
|
||||
return Promise.reject(new Error(t("node.invalidValue")));
|
||||
|
||||
Reference in new issue
Block a user