From 7c5fa7f4a2046c1f4bb77ed5e480918ffb8a10aa Mon Sep 17 00:00:00 2001 From: Chenlei Hu Date: Mon, 1 Jul 2024 12:10:44 -0400 Subject: [PATCH] Fix loadGraphData func call (#3918) --- web/scripts/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/scripts/app.js b/web/scripts/app.js index 776fc197..b8889a4c 100644 --- a/web/scripts/app.js +++ b/web/scripts/app.js @@ -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 {