Fixed L4625 bug to link disconnect

This commit is contained in:
Daniel Lewis 2024-06-02 12:34:44 -06:00
parent e1557ea69b
commit f10ea50cd5

View File

@ -4598,8 +4598,9 @@ class LGraphNode {
return false; return false;
} }
let i;
// search in the inputs list for this link // 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) { if (output.links[i] == link_id) {
output.links.splice(i, 1); output.links.splice(i, 1);
break; break;