Commit 6962cb46 authored by comfyanonymous's avatar comfyanonymous
Browse files

Fix issue when node_input is undefined.

parent 7291e303
......@@ -19,8 +19,9 @@ function hideWidget(node, widget, suffix = "") {
if (!node.inputs) {
return undefined;
}
const { link } = node.inputs.find((i) => i.widget?.name === widget.name);
if (link == null) {
let node_input = node.inputs.find((i) => i.widget?.name === widget.name);
if (!node_input || !node_input.link) {
return undefined;
}
return widget.origSerializeValue ? widget.origSerializeValue() : widget.value;
......
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