mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-01-11 10:25:16 +00:00
Fix crash if node is removed mid run
This commit is contained in:
parent
6f72c4c6ff
commit
00c1ec498f
@ -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);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user