From 60c4724e24cd925c6afc233175286185120b9f87 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