Skip to content

Commit

Permalink
Fix loadGraphData func call (#3918)
Browse files Browse the repository at this point in the history
  • Loading branch information
huchenlei committed Jul 1, 2024
1 parent 521421f commit 7c5fa7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/scripts/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 7c5fa7f

Please sign in to comment.