"git@developer.sourcefind.cn:chenpangpang/ComfyUI.git" did not exist on "18511dd581cf8da701cc60af07bb947fa4a79656"
Commit 076f3e63 authored by karrycharon's avatar karrycharon
Browse files

fix structuredClone undefined error;

parent 0d8f3764
...@@ -1297,7 +1297,13 @@ export class ComfyApp { ...@@ -1297,7 +1297,13 @@ export class ComfyApp {
let reset_invalid_values = false; let reset_invalid_values = false;
if (!graphData) { if (!graphData) {
graphData = structuredClone(defaultGraph); if (typeof structuredClone === "undefined")
{
graphData = JSON.parse(JSON.stringify(defaultGraph));
}else
{
graphData = structuredClone(defaultGraph);
}
reset_invalid_values = true; reset_invalid_values = true;
} }
......
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