From a89b45d826759b8bcc24fc51261507cf643953cf Mon Sep 17 00:00:00 2001 From: comfyanonymous Date: Fri, 5 Apr 2024 15:20:35 -0400 Subject: [PATCH] Fix links sometimes not being correct when copy pasting nodes. --- src/litegraph.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/litegraph.js b/src/litegraph.js index 359f6e1d0..64035c27e 100755 --- a/src/litegraph.js +++ b/src/litegraph.js @@ -7341,7 +7341,7 @@ LGraphNode.prototype.executeAction = function(action) //create links for (var i = 0; i < clipboard_info.links.length; ++i) { var link_info = clipboard_info.links[i]; - var origin_node; + var origin_node = undefined; var origin_node_relative_id = link_info[0]; if (origin_node_relative_id != null) { origin_node = nodes[origin_node_relative_id];