From ca2b59248ece910579b55a1512b0a846928259ea Mon Sep 17 00:00:00 2001 From: Acly Date: Thu, 22 May 2025 15:46:42 +0200 Subject: [PATCH] Fix error when importing workflows that contain Parameter nodes connected to nodes that aren't installed --- js/external_tooling_nodes.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/external_tooling_nodes.js b/js/external_tooling_nodes.js index 66904a8..9394e00 100644 --- a/js/external_tooling_nodes.js +++ b/js/external_tooling_nodes.js @@ -152,6 +152,8 @@ function adaptWidgetsToConnection(node) { const widgetName = input.widget.name const theirWidget = theirNode.widgets.find((w) => w.name === widgetName) + if (!theirWidget) return // connected to a custom node that isn't installed + const widgetType = theirWidget.origType ?? theirWidget.type changeWidgets(node, widgetType, theirNode, theirWidget)