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 bypassed nodes with no inputs.

comfyanonymous077617e8c963
diff --git a/web/scripts/app.js b/web/scripts/app.js
index 75dc0fd69..8c9e7a27f 100644
--- a/web/scripts/app.js
+++ b/web/scripts/app.js
@@ -1362,20 +1362,23 @@ export class ComfyApp {
}
}
} else if (link && parent.mode === 4) {
- let all_inputs = [link.origin_slot].concat(parent.inputs)
- for (let parent_input in all_inputs) {
- if (parent.inputs[parent_input].type === node.inputs[i].type) {
- link = parent.getInputLink(parent_input);
- if (link) {
- parent = parent.getInputNode(parent_input);
+ let all_inputs = [link.origin_slot];
+ if (parent.inputs) {
+ all_inputs = all_inputs.concat(Object.keys(parent.inputs))
+ for (let parent_input in all_inputs) {
+ parent_input = all_inputs[parent_input];
+ if (parent.inputs[parent_input].type === node.inputs[i].type) {
+ link = parent.getInputLink(parent_input);
+ if (link) {
+ parent = parent.getInputNode(parent_input);
+ }
+ found = true;
+ break;
}
- found = true;
- break;
}
}
}
-
if (!found) {
break;
}