mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-13 07:40:50 +08:00
Fix get upstream link
This commit is contained in:
parent
32fe4dc411
commit
2f70faa0aa
@ -60,7 +60,7 @@ export function getUpstreamLink(parent, currentLink) {
|
||||
const link = parent.getUpstreamLink();
|
||||
return [parent.graph, link];
|
||||
}
|
||||
else if (parent.inputs.length === 1) {
|
||||
else if (parent.inputs && parent.inputs.length === 1) {
|
||||
// Only one input, so assume we can follow it backwards.
|
||||
const link = parent.getInputLink(0);
|
||||
if (link) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user