Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
huchenlei committed Jul 30, 2024
1 parent c213d4a commit 9ae4086
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/types/litegraphTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ export class ConnectingLinkImpl implements ConnectingLink {
}

connectTo(newNode: LGraphNode) {
const newNodeSlots = newNode.outputs ? newNode.outputs : newNode.inputs
const newNodeSlots =
this.releaseSlotType === 'output' ? newNode.outputs : newNode.inputs
const newNodeSlot = newNodeSlots.findIndex(
(slot: INodeSlot) => slot.type === this.type
)
Expand Down

0 comments on commit 9ae4086

Please sign in to comment.