1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

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

View File

@ -778,12 +778,13 @@ RED.nodes = (function() {
function moveJunctionToTab(junction, z) { function moveJunctionToTab(junction, z) {
var index = junctionsByZ[junction.z].indexOf(junction); 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] = junctionsByZ[z] || [];
junctionsByZ[z].push(junction); junctionsByZ[z].push(junction);
junction.z = z;
var oldZ = junction.z; var oldZ = junction.z;
junction.z = z;
var nl = nodeLinks[junction.id]; var nl = nodeLinks[junction.id];
if (nl) { if (nl) {
nl.in.forEach(function(l) { nl.in.forEach(function(l) {