Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

fix app.js no graph defined (#3754)

Juanjuan379ff92e9e87
diff --git a/web/scripts/app.js b/web/scripts/app.js
index f96d197a8..58fb765c4 100644
--- a/web/scripts/app.js
+++ b/web/scripts/app.js
@@ -2239,7 +2239,7 @@ export class ComfyApp {
const node = LiteGraph.createNode(data.class_type);
node.id = isNaN(+id) ? id : +id;
node.title = data._meta?.title ?? node.title
- graph.add(node);
+ app.graph.add(node);
}
for (const id of ids) {