We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8589b23 commit 228e8ebCopy full SHA for 228e8eb
src/lib/litegraph/src/LGraphCanvas.ts
@@ -3608,6 +3608,7 @@ export class LGraphCanvas
3608
subgraphs: []
3609
}
3610
3611
+ // NOTE: logic for traversing nested subgraphs depends on this being a set.
3612
const subgraphs = new Set<Subgraph>()
3613
3614
// Create serialisable objects
@@ -3646,6 +3647,7 @@ export class LGraphCanvas
3646
3647
3648
3649
// Add unique subgraph entries
3650
+ // NOTE: subgraphs is appended to mid iteration.
3651
for (const subgraph of subgraphs) {
3652
for (const node of subgraph.nodes) {
3653
if (node instanceof SubgraphNode) {
0 commit comments