Skip to content

Commit e8539ad

Browse files
committed
Fix missing index check
1 parent afd3c05 commit e8539ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/components/ComfyPromptSerializer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ function followGraphInput(graphInput: GraphInput, link: LLink): UpstreamResult {
9494
throw new Error("No outer subgraph!")
9595

9696
const outerInputIndex = outerSubgraph.inputs.findIndex(i => i.name === graphInput.nameInGraph)
97-
if (outerInputIndex == null)
97+
if (outerInputIndex === -1)
9898
throw new Error("No outer input slot!")
9999

100100
const nextLink = outerSubgraph.getInputLink(outerInputIndex)

0 commit comments

Comments
 (0)