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
7c5fa7f4
"doc/git@developer.sourcefind.cn:wangsen/paddle_dbnet.git" did not exist on "da8991efb9d7acf16bb371f827834b42e6308418"
Unverified
Commit
7c5fa7f4
authored
Jul 01, 2024
by
Chenlei Hu
Committed by
GitHub
Jul 01, 2024
Browse files
Fix loadGraphData func call (#3918)
parent
521421f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
web/scripts/app.js
web/scripts/app.js
+2
-2
No files found.
web/scripts/app.js
View file @
7c5fa7f4
...
...
@@ -2314,14 +2314,14 @@ export class ComfyApp {
}
else
if
(
this
.
isApiJson
(
jsonContent
))
{
this
.
loadApiJson
(
jsonContent
,
fileName
);
}
else
{
await
this
.
loadGraphData
(
jsonContent
,
true
,
fileName
);
await
this
.
loadGraphData
(
jsonContent
,
true
,
true
,
fileName
);
}
};
reader
.
readAsText
(
file
);
}
else
if
(
file
.
name
?.
endsWith
(
"
.latent
"
)
||
file
.
name
?.
endsWith
(
"
.safetensors
"
))
{
const
info
=
await
getLatentMetadata
(
file
);
if
(
info
.
workflow
)
{
await
this
.
loadGraphData
(
JSON
.
parse
(
info
.
workflow
),
true
,
fileName
);
await
this
.
loadGraphData
(
JSON
.
parse
(
info
.
workflow
),
true
,
true
,
fileName
);
}
else
if
(
info
.
prompt
)
{
this
.
loadApiJson
(
JSON
.
parse
(
info
.
prompt
));
}
else
{
...
...
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