mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Don't include subflow meta-port nodes in exported selection
Fixes #1362
This commit is contained in:
parent
5b3b5271ad
commit
96a0dbea2d
@ -203,7 +203,8 @@ RED.clipboard = (function() {
|
|||||||
var nodes = null;
|
var nodes = null;
|
||||||
if (type === 'export-range-selected') {
|
if (type === 'export-range-selected') {
|
||||||
var selection = RED.view.selection();
|
var selection = RED.view.selection();
|
||||||
nodes = RED.nodes.createExportableNodeSet(selection.nodes);
|
// Don't include the subflow meta-port nodes in the exported selection
|
||||||
|
nodes = RED.nodes.createExportableNodeSet(selection.nodes.filter(function(n) { return n.type !== 'subflow'}));
|
||||||
} else if (type === 'export-range-flow') {
|
} else if (type === 'export-range-flow') {
|
||||||
var activeWorkspace = RED.workspaces.active();
|
var activeWorkspace = RED.workspaces.active();
|
||||||
nodes = RED.nodes.filterNodes({z:activeWorkspace});
|
nodes = RED.nodes.filterNodes({z:activeWorkspace});
|
||||||
|
Loading…
Reference in New Issue
Block a user