File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1- import type { LGraph , NodeId } from '@comfyorg/litegraph'
1+ import type { LGraph , LGraphNode , NodeId } from '@comfyorg/litegraph'
22import { LGraphEventMode } from '@comfyorg/litegraph'
33
44import type {
@@ -120,7 +120,7 @@ export const graphToPrompt = async (
120120
121121 // Store all node links
122122 for ( const [ i , input ] of node . inputs . entries ( ) ) {
123- let parent = node . getInputNode ( i )
123+ let parent : LGraphNode | null | undefined = node . getInputNode ( i )
124124 if ( ! parent ) continue
125125
126126 let link = node . getInputLink ( i )
@@ -135,7 +135,7 @@ export const graphToPrompt = async (
135135 if ( ! link ) break
136136
137137 parent = parent . isSubgraphNode ( )
138- ? parent . getInputNodeFromSubgraph ( link . target_slot )
138+ ? parent . getOutputNodeFromSubgraph ( link . origin_slot )
139139 : parent . getInputNode ( link . target_slot )
140140
141141 if ( ! parent ) break
You can’t perform that action at this time.
0 commit comments