From 2f70faa0aafe1f283eb251f4f1a88f92c6d715e0 Mon Sep 17 00:00:00 2001 From: space-nuko <24979496+space-nuko@users.noreply.github.com> Date: Tue, 6 Jun 2023 12:40:00 -0500 Subject: [PATCH] Fix get upstream link --- web/scripts/graphUtils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/scripts/graphUtils.js b/web/scripts/graphUtils.js index 37746e453..6eaa1beb8 100644 --- a/web/scripts/graphUtils.js +++ b/web/scripts/graphUtils.js @@ -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) {