Skip to content

Commit

Permalink
Fix loadGraphData func call (comfyanonymous#3918)
Browse files Browse the repository at this point in the history
  • Loading branch information
huchenlei authored and csokun committed Jul 10, 2024
1 parent 1255b29 commit be73dfb
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 be73dfb

Please sign in to comment.