fix app.js no graph defined (#3754)

* local test

* fix "graph" not found

* fix

---------

Co-authored-by: Xiujuan Li <xiujuali@amazon.com>
This commit is contained in:
Juanjuan 2024-06-17 19:56:53 +08:00 committed by GitHub
parent b7c473d1ab
commit 379ff92e9e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -2239,7 +2239,7 @@ export class ComfyApp {
const node = LiteGraph.createNode(data.class_type); const node = LiteGraph.createNode(data.class_type);
node.id = isNaN(+id) ? id : +id; node.id = isNaN(+id) ? id : +id;
node.title = data._meta?.title ?? node.title node.title = data._meta?.title ?? node.title
graph.add(node); app.graph.add(node);
} }
for (const id of ids) { for (const id of ids) {