diff --git a/web/scripts/app.js b/web/scripts/app.js index 63fc22da..b2998109 100644 --- a/web/scripts/app.js +++ b/web/scripts/app.js @@ -618,7 +618,7 @@ class ComfyApp { api.addEventListener("executed", ({ detail }) => { this.nodeOutputs[detail.node] = detail.output; const node = this.graph.getNodeById(detail.node); - if (node.onExecuted) { + if (node?.onExecuted) { node.onExecuted(detail.output); } });