Skip to content

Commit 2c215a6

Browse files
authored
Fix subgraph reroute serialization (#4911)
1 parent 71a4319 commit 2c215a6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/lib/litegraph/src/LGraph.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2331,6 +2331,9 @@ export class Subgraph
23312331
nodes: this.nodes.map((node) => node.serialize()),
23322332
groups: this.groups.map((group) => group.serialize()),
23332333
links: [...this.links.values()].map((x) => x.asSerialisable()),
2334+
reroutes: this.reroutes.size
2335+
? [...this.reroutes.values()].map((x) => x.asSerialisable())
2336+
: undefined,
23342337
extra: this.extra
23352338
}
23362339
}

0 commit comments

Comments
 (0)