From 8415ef81d52e5933d89ae53e0f26e9e40fd3df89 Mon Sep 17 00:00:00 2001 From: pythongosssss <125205205+pythongosssss@users.noreply.github.com> Date: Sat, 14 Oct 2023 13:59:57 +0100 Subject: [PATCH] fix using wrong node on widget serialize --- web/scripts/app.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/web/scripts/app.js b/web/scripts/app.js index 5f87edcc1..fd9a39318 100644 --- a/web/scripts/app.js +++ b/web/scripts/app.js @@ -1546,10 +1546,8 @@ export class ComfyApp { const output = {}; // Process nodes in order of execution for (const outerNode of this.graph.computeExecutionOrder(false)) { - const n = workflow.nodes.find((n) => n.id === outerNode.id); const innerNodes = outerNode.getInnerNodes ? outerNode.getInnerNodes() : [outerNode]; for (const node of innerNodes) { - console.log(node.id, node.title ?? node.comfyClass); if (node.isVirtualNode) { // Don't serialize frontend only nodes but let them make changes if (node.applyToGraph) { @@ -1571,7 +1569,7 @@ export class ComfyApp { for (const i in widgets) { const widget = widgets[i]; if (!widget.options || widget.options.serialize !== false) { - inputs[widget.name] = widget.serializeValue ? await widget.serializeValue(n, i) : widget.value; + inputs[widget.name] = widget.serializeValue ? await widget.serializeValue(node, i) : widget.value; } } }