Commit 00c1ec49 authored by pythongosssss's avatar pythongosssss
Browse files

Fix crash if node is removed mid run

parent 6f72c4c6
...@@ -618,7 +618,7 @@ class ComfyApp { ...@@ -618,7 +618,7 @@ class ComfyApp {
api.addEventListener("executed", ({ detail }) => { api.addEventListener("executed", ({ detail }) => {
this.nodeOutputs[detail.node] = detail.output; this.nodeOutputs[detail.node] = detail.output;
const node = this.graph.getNodeById(detail.node); const node = this.graph.getNodeById(detail.node);
if (node.onExecuted) { if (node?.onExecuted) {
node.onExecuted(detail.output); node.onExecuted(detail.output);
} }
}); });
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment