show json data when node is undefined

This commit is contained in:
codetypes committed 2025-11-11 16:27:23 +08:00
1 parent 6ae27c50a0
commit dae8f81d25
6 files changed
+12 -5

No files matched your search

+6
View File
@@ -616,6 +616,7 @@ const NodeInspector: FC = () => {
} else {
form.setFieldValue("children", def.children);
}
form.setFieldValue("json-data", JSON.stringify(data, null, 2));
def.args?.forEach((arg) => {
const type = getNodeArgRawType(arg);
const value = data.args?.[arg.name];
@@ -1495,6 +1496,11 @@ const NodeInspector: FC = () => {
})}
</>
)}
{def.name === "unknown" && (
<Form.Item name="json-data" label={t("node.jsonData")}>
<TextArea autoSize />
</Form.Item>
)}
</Form>
{disabled && (
<Flex style={{ paddingTop: "30px" }}>
+1 -1
View File
@@ -1,6 +1,6 @@
import { NodeDef } from "../behavior3/src/behavior3";
export const VERSION = "1.8.8";
export const VERSION = "1.8.10";
export const keyWords = ["true", "false", "null", "undefined", "NaN", "Infinity"];