diff --git a/web/scripts/app.js b/web/scripts/app.js index 8b4478a32..74f528afd 100644 --- a/web/scripts/app.js +++ b/web/scripts/app.js @@ -2033,6 +2033,9 @@ export class ComfyApp { } const workflow = graph.serialize(); + // links are already sorted, but nodes are not + workflow["nodes"] = Object.values(workflow["nodes"]).sort((a, b) => a.id - b.id); + const output = {}; // Process nodes in order of execution for (const outerNode of graph.computeExecutionOrder(false)) {