Merge pull request #3666 from node-red-hitachi/fix-junction-to-subflow-2

Fix uncorrect fix of junction to subflow conversion
This commit is contained in:
Stephen McLaughlin 2022-06-14 09:34:56 +01:00 committed by GitHub
commit 8762d0e164
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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) {