Fix get upstream link

This commit is contained in:
space-nuko 2023-06-06 12:40:00 -05:00
parent 32fe4dc411
commit 2f70faa0aa

View File

@ -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) {