[backport 1.25] Fix subgraph reroute serialization (#4920)

Co-authored-by: AustinMroz <austin@comfy.org>
This commit is contained in:
Comfy Org PR Bot
2025-08-12 05:53:09 +08:00
committed by GitHub
parent bbf7b4801c
commit fc294112e7

View File

@@ -2331,6 +2331,9 @@ export class Subgraph
nodes: this.nodes.map((node) => node.serialize()),
groups: this.groups.map((group) => group.serialize()),
links: [...this.links.values()].map((x) => x.asSerialisable()),
reroutes: this.reroutes.size
? [...this.reroutes.values()].map((x) => x.asSerialisable())
: undefined,
extra: this.extra
}
}