From f10ea50cd59517bf3d457d2a2a46992f6be34e37 Mon Sep 17 00:00:00 2001 From: Daniel Lewis Date: Sun, 2 Jun 2024 12:34:44 -0600 Subject: [PATCH] Fixed L4625 bug to link disconnect --- web/lib/litegraph.core.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/lib/litegraph.core.js b/web/lib/litegraph.core.js index c8d157ddf..5e6d0f5be 100755 --- a/web/lib/litegraph.core.js +++ b/web/lib/litegraph.core.js @@ -4598,8 +4598,9 @@ class LGraphNode { return false; } + let i; // search in the inputs list for this link - for (let i = 0, l = output.links.length; i < l; i++) { + for (i = 0, l = output.links.length; i < l; i++) { if (output.links[i] == link_id) { output.links.splice(i, 1); break;