diff --git a/editor/js/nodes.js b/editor/js/nodes.js index 40e9806ba..07f77b9e0 100644 --- a/editor/js/nodes.js +++ b/editor/js/nodes.js @@ -508,10 +508,10 @@ RED.nodes = (function() { /** * Converts the current node selection to an exportable JSON Object **/ - function createExportableNodeSet(set) { + function createExportableNodeSet(set, exportedSubflows, exportedConfigNodes) { var nns = []; - var exportedConfigNodes = {}; - var exportedSubflows = {}; + exportedConfigNodes = exportedConfigNodes || {}; + exportedSubflows = exportedSubflows || {}; for (var n=0;n