"web/git@developer.sourcefind.cn:chenpangpang/ComfyUI.git" did not exist on "34030fed925ca6e11863a0c2f85d84303378e312"
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 {
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);
}
});
......
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