Merge pull request #3650 from node-red-hitachi/fix-export-junction

Fix to include junction to exported nodes
This commit is contained in:
Nick O'Leary
2022-06-13 21:06:33 +01:00
committed by GitHub

View File

@@ -709,6 +709,7 @@ RED.clipboard = (function() {
} else if (type === 'flow') {
var activeWorkspace = RED.workspaces.active();
nodes = RED.nodes.groups(activeWorkspace);
nodes = nodes.concat(RED.nodes.junctions(activeWorkspace));
nodes = nodes.concat(RED.nodes.filterNodes({z:activeWorkspace}));
RED.nodes.eachConfig(function(n) {
if (n.z === RED.workspaces.active() && n._def.hasUsers === false) {