From d27ced7cf35876c182ec4d3dabcc698902531521 Mon Sep 17 00:00:00 2001 From: Chenlei Hu Date: Tue, 18 Feb 2025 19:32:06 -0500 Subject: [PATCH] [BugFix] Fix unknown node with converted widgets (#547) --- src/LGraphNode.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/LGraphNode.ts b/src/LGraphNode.ts index b49bd1621..97d6cc350 100644 --- a/src/LGraphNode.ts +++ b/src/LGraphNode.ts @@ -3222,8 +3222,10 @@ export class LGraphNode implements Positionable, IPinnable { const slots: LayoutElement[] = [] for (const [i, slot] of this.inputs.entries()) { + // Unrecognized nodes (Nodes with error) has inputs but no widgets. Treat + // converted inputs as normal inputs. /** Widget input slots are handled in {@link layoutWidgetInputSlots} */ - if (isWidgetInputSlot(slot)) continue + if (this.widgets?.length && isWidgetInputSlot(slot)) continue this.layoutSlot(slot, { slotIndex: i,