1
0
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:
Nick O'Leary 2017-08-08 15:48:54 +01:00
parent 5b3b5271ad
commit 96a0dbea2d
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -203,7 +203,8 @@ RED.clipboard = (function() {
var nodes = null;
if (type === 'export-range-selected') {
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') {
var activeWorkspace = RED.workspaces.active();
nodes = RED.nodes.filterNodes({z:activeWorkspace});