mirror of https://github.com/node-red/node-red.git
Merge pull request #3723 from Steve-Mcl/fix-import
Ensure importMap is not null when using import UIpull/3730/head
commit
f5fe4f99f1
|
@ -1664,6 +1664,7 @@ RED.nodes = (function() {
|
|||
function importNodes(newNodesObj,options) { // createNewIds,createMissingWorkspace) {
|
||||
const defOpts = { generateIds: false, addFlow: false, reimport: false, importMap: {} }
|
||||
options = Object.assign({}, defOpts, options)
|
||||
options.importMap = options.importMap || {}
|
||||
const createNewIds = options.generateIds;
|
||||
const reimport = (!createNewIds && !!options.reimport)
|
||||
const createMissingWorkspace = options.addFlow;
|
||||
|
|
Loading…
Reference in New Issue