From 7be5b9af99fec4c18c0f19d555c484954dbd7b11 Mon Sep 17 00:00:00 2001 From: pythongosssss <125205205+pythongosssss@users.noreply.github.com> Date: Mon, 26 Aug 2024 17:43:56 +0100 Subject: [PATCH] Fix crash connecting to node with no slots --- src/types/litegraphTypes.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/types/litegraphTypes.ts b/src/types/litegraphTypes.ts index ec3d25c0..9c93d4b8 100644 --- a/src/types/litegraphTypes.ts +++ b/src/types/litegraphTypes.ts @@ -54,6 +54,8 @@ export class ConnectingLinkImpl implements ConnectingLink { connectTo(newNode: LGraphNode) { const newNodeSlots = this.releaseSlotType === 'output' ? newNode.outputs : newNode.inputs + if (!newNodeSlots) return + const newNodeSlot = newNodeSlots.findIndex( (slot: INodeSlot) => slot.type === this.type || slot.type === '*' || this.type === '*'