mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-01-11 10:25:16 +00:00
Fix issue when node_input is undefined.
This commit is contained in:
parent
7291e303f6
commit
6962cb46a9
@ -19,8 +19,9 @@ function hideWidget(node, widget, suffix = "") {
|
|||||||
if (!node.inputs) {
|
if (!node.inputs) {
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
const { link } = node.inputs.find((i) => i.widget?.name === widget.name);
|
let node_input = node.inputs.find((i) => i.widget?.name === widget.name);
|
||||||
if (link == null) {
|
|
||||||
|
if (!node_input || !node_input.link) {
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
return widget.origSerializeValue ? widget.origSerializeValue() : widget.value;
|
return widget.origSerializeValue ? widget.origSerializeValue() : widget.value;
|
||||||
|
Loading…
Reference in New Issue
Block a user