mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
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:
commit
8762d0e164
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user