From 7e8510028d33caaef3f14415e8d9202b8b514f46 Mon Sep 17 00:00:00 2001 From: Jarvis Date: Wed, 8 Jan 2025 23:56:27 +0800 Subject: [PATCH] fix: Make sure use the correct `graph` parameter (#2200) --- src/scripts/app.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/app.ts b/src/scripts/app.ts index 0036d30b9..9cc0bf488 100644 --- a/src/scripts/app.ts +++ b/src/scripts/app.ts @@ -1478,7 +1478,7 @@ export class ComfyApp { * @returns The workflow and node links */ async graphToPrompt(graph = this.graph, clean = true) { - for (const outerNode of this.graph.computeExecutionOrder(false)) { + for (const outerNode of graph.computeExecutionOrder(false)) { if (outerNode.widgets) { for (const widget of outerNode.widgets) { // Allow widgets to run callbacks before a prompt has been queued