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 {
let reset_invalid_values = false;
if (!graphData) {
graphData = defaultGraph;
reset_invalid_values = true;
}
if (typeof structuredClone === "undefined")
{
graphData = JSON.parse(JSON.stringify(defaultGraph));
graphData = JSON.parse(JSON.stringify(graphData));
}else
{
graphData = structuredClone(defaultGraph);
}
reset_invalid_values = true;
graphData = structuredClone(graphData);
}
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