diff --git a/src/lib/litegraph/src/LGraph.ts b/src/lib/litegraph/src/LGraph.ts index e79ec3ea9..b4390736b 100644 --- a/src/lib/litegraph/src/LGraph.ts +++ b/src/lib/litegraph/src/LGraph.ts @@ -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 } }