fix check optional values

This commit is contained in:
codetypes committed 2024-09-25 17:34:30 +08:00
1 parent 89f2ffdbe6
commit d462958c1b
1 file changed
+2
+2
View File
@@ -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")));