diff --git a/src/types/litegraphTypes.ts b/src/types/litegraphTypes.ts index ec3d25c02..9c93d4b83 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 === '*'