diff --git a/browser_tests/assets/missing_nodes_converted_widget.json b/browser_tests/assets/missing_nodes_converted_widget.json index 67230030a..5237f0f9f 100644 --- a/browser_tests/assets/missing_nodes_converted_widget.json +++ b/browser_tests/assets/missing_nodes_converted_widget.json @@ -51,7 +51,10 @@ 0.85, false, false, - "" + "", + { + "foo": "bar" + } ] } ], diff --git a/browser_tests/tests/nodeDisplay.spec.ts-snapshots/missing-nodes-converted-widget-chromium-linux.png b/browser_tests/tests/nodeDisplay.spec.ts-snapshots/missing-nodes-converted-widget-chromium-linux.png index 0d1fbdae5..f262a6ddf 100644 Binary files a/browser_tests/tests/nodeDisplay.spec.ts-snapshots/missing-nodes-converted-widget-chromium-linux.png and b/browser_tests/tests/nodeDisplay.spec.ts-snapshots/missing-nodes-converted-widget-chromium-linux.png differ diff --git a/src/scripts/errorNodeWidgets.ts b/src/scripts/errorNodeWidgets.ts index 2e4d2457f..838eaee22 100644 --- a/src/scripts/errorNodeWidgets.ts +++ b/src/scripts/errorNodeWidgets.ts @@ -29,7 +29,12 @@ function addWidgetFromValue(node: LGraphNode, value: unknown) { name: 'UNKNOWN' }) } else { - console.warn(`Unknown value type: ${typeof value}`) + widget = StringWidget(node, { + type: 'STRING', + name: 'UNKNOWN', + multiline: true + }) + widget.value = JSON.stringify(value) return }