From 1716aaa7a6823f3eb7542fefac3257e8f2d8191c Mon Sep 17 00:00:00 2001 From: pythongosssss <125205205+pythongosssss@users.noreply.github.com> Date: Fri, 31 Mar 2023 18:04:53 +0100 Subject: [PATCH] Swap order to prevent being cleared --- web/scripts/ui.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/scripts/ui.js b/web/scripts/ui.js index 2aabd29e..2d55e885 100644 --- a/web/scripts/ui.js +++ b/web/scripts/ui.js @@ -225,10 +225,10 @@ class ComfyList { $el("button", { textContent: "Load", onclick: () => { + app.loadGraphData(item.prompt[3].extra_pnginfo.workflow); if (item.outputs) { app.nodeOutputs = item.outputs; } - app.loadGraphData(item.prompt[3].extra_pnginfo.workflow); }, }), $el("button", {