Commit 7114cfec authored by comfyanonymous's avatar comfyanonymous
Browse files

Always clone graph data when loading to fix some load issues.

parent 629e4c55
...@@ -1489,14 +1489,16 @@ export class ComfyApp { ...@@ -1489,14 +1489,16 @@ export class ComfyApp {
let reset_invalid_values = false; let reset_invalid_values = false;
if (!graphData) { if (!graphData) {
graphData = defaultGraph;
reset_invalid_values = true;
}
if (typeof structuredClone === "undefined") if (typeof structuredClone === "undefined")
{ {
graphData = JSON.parse(JSON.stringify(defaultGraph)); graphData = JSON.parse(JSON.stringify(graphData));
}else }else
{ {
graphData = structuredClone(defaultGraph); graphData = structuredClone(graphData);
}
reset_invalid_values = true;
} }
const missingNodeTypes = []; const missingNodeTypes = [];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment