Skip to content

Commit 9a41611

Browse files
[fix] Fix graph configuration callbacks not reaching subgraph nodes (#4572)
1 parent d6f0b5d commit 9a41611

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/scripts/app.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -720,16 +720,12 @@ export class ComfyApp {
720720
fixLinkInputSlots(this)
721721

722722
// Fire callbacks before the onConfigure, this is used by widget inputs to setup the config
723-
for (const node of graph.nodes) {
724-
node.onGraphConfigured?.()
725-
}
723+
triggerCallbackOnAllNodes(this, 'onGraphConfigured')
726724

727725
const r = onConfigure?.apply(this, args)
728726

729727
// Fire after onConfigure, used by primitives to generate widget using input nodes config
730-
for (const node of graph.nodes) {
731-
node.onAfterGraphConfigured?.()
732-
}
728+
triggerCallbackOnAllNodes(this, 'onAfterGraphConfigured')
733729

734730
return r
735731
}

0 commit comments

Comments
 (0)