Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
ComfyUI
Commits
076f3e63
"git@developer.sourcefind.cn:chenpangpang/ComfyUI.git" did not exist on "18511dd581cf8da701cc60af07bb947fa4a79656"
Commit
076f3e63
authored
Sep 15, 2023
by
karrycharon
Browse files
fix structuredClone undefined error;
parent
0d8f3764
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
web/scripts/app.js
web/scripts/app.js
+7
-1
No files found.
web/scripts/app.js
View file @
076f3e63
...
@@ -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
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment