diff --git a/packages/node_modules/@node-red/editor-client/src/js/nodes.js b/packages/node_modules/@node-red/editor-client/src/js/nodes.js index ab31e5038..052fad558 100644 --- a/packages/node_modules/@node-red/editor-client/src/js/nodes.js +++ b/packages/node_modules/@node-red/editor-client/src/js/nodes.js @@ -778,12 +778,13 @@ RED.nodes = (function() { function moveJunctionToTab(junction, z) { var index = junctionsByZ[junction.z].indexOf(junction); - junctionsByZ[junction.z].splice(junction,1); + junctionsByZ[junction.z].splice(index,1); junctionsByZ[z] = junctionsByZ[z] || []; junctionsByZ[z].push(junction); - junction.z = z; var oldZ = junction.z; + junction.z = z; + var nl = nodeLinks[junction.id]; if (nl) { nl.in.forEach(function(l) {