1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Ensure importMap is not null when using import UI

fixes #3722
This commit is contained in:
Steve-Mcl 2022-06-30 15:17:49 +01:00
parent f041159aa7
commit 1b6cbe5c23

View File

@ -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;