Fix error when importing workflows that contain Parameter nodes connected to nodes that aren't installed

This commit is contained in:
Acly
2025-05-22 15:46:42 +02:00
parent 696899a5fc
commit ca2b59248e
+2
View File
@@ -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)