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

Remove bad z property from import config nodes

This commit is contained in:
Nick O'Leary 2020-10-19 12:53:03 +01:00
parent 978eb95acd
commit e62fd7ed15
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -1235,6 +1235,9 @@ RED.nodes = (function() {
if (defaultWorkspace == null) { if (defaultWorkspace == null) {
defaultWorkspace = n; defaultWorkspace = n;
} }
if (activeWorkspace === 0) {
activeWorkspace = n.id;
}
if (createNewIds || options.importMap[n.id] === "copy") { if (createNewIds || options.importMap[n.id] === "copy") {
nid = getID(); nid = getID();
workspace_map[n.id] = nid; workspace_map[n.id] = nid;
@ -1490,6 +1493,9 @@ RED.nodes = (function() {
delete node.wires; delete node.wires;
delete node.inputLabels; delete node.inputLabels;
delete node.outputLabels; delete node.outputLabels;
if (!n.z) {
delete node.z;
}
} }
var orig = {}; var orig = {};
for (var p in n) { for (var p in n) {