From 06c2c19b5a2db59dc28ff48a817d399c9148576e Mon Sep 17 00:00:00 2001 From: pythongosssss <125205205+pythongosssss@users.noreply.github.com> Date: Fri, 31 Mar 2023 20:35:26 +0100 Subject: [PATCH] Clone default graph before using --- web/scripts/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/scripts/app.js b/web/scripts/app.js index b29981091..501c7ea65 100644 --- a/web/scripts/app.js +++ b/web/scripts/app.js @@ -802,7 +802,7 @@ class ComfyApp { this.clean(); if (!graphData) { - graphData = defaultGraph; + graphData = structuredClone(defaultGraph); } // Patch T2IAdapterLoader to ControlNetLoader since they are the same node now