fix uncorrect fix of junction to subflow conversion

This commit is contained in:
Hiroyasu Nishiyama 2022-06-14 16:49:14 +09:00
parent 6c49d1aa3f
commit 2b91edeb74
1 changed files with 3 additions and 2 deletions

View File

@ -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) {