mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
parent
f041159aa7
commit
1b6cbe5c23
@ -1664,6 +1664,7 @@ RED.nodes = (function() {
|
|||||||
function importNodes(newNodesObj,options) { // createNewIds,createMissingWorkspace) {
|
function importNodes(newNodesObj,options) { // createNewIds,createMissingWorkspace) {
|
||||||
const defOpts = { generateIds: false, addFlow: false, reimport: false, importMap: {} }
|
const defOpts = { generateIds: false, addFlow: false, reimport: false, importMap: {} }
|
||||||
options = Object.assign({}, defOpts, options)
|
options = Object.assign({}, defOpts, options)
|
||||||
|
options.importMap = options.importMap || {}
|
||||||
const createNewIds = options.generateIds;
|
const createNewIds = options.generateIds;
|
||||||
const reimport = (!createNewIds && !!options.reimport)
|
const reimport = (!createNewIds && !!options.reimport)
|
||||||
const createMissingWorkspace = options.addFlow;
|
const createMissingWorkspace = options.addFlow;
|
||||||
|
Loading…
Reference in New Issue
Block a user