fix: Make sure use the correct graph parameter (#2200)

This commit is contained in:
Jarvis
2025-01-08 23:56:27 +08:00
committed by GitHub
parent dd4dd8b68a
commit 7e8510028d

View File

@@ -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