Skip to content

Commit

Permalink
Fix crash connecting to node with no slots
Browse files Browse the repository at this point in the history
  • Loading branch information
pythongosssss committed Aug 26, 2024
1 parent 96d129e commit 7be5b9a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/types/litegraphTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 === '*'
Expand Down

0 comments on commit 7be5b9a

Please sign in to comment.