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

Ensure config nodes with invalid z are imported somewhere

This commit is contained in:
Nick O'Leary 2020-11-14 14:10:32 +00:00
parent d79cd463a0
commit 99478897c5
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -1359,6 +1359,10 @@ RED.nodes = (function() {
} }
} }
} }
} else {
if (n.z) {
n.z = workspaces[n.z] || activeWorkspace;
}
} }
if (!existingConfigNode || existingConfigNode._def.exclusive) { //} || !compareNodes(existingConfigNode,n,true) || existingConfigNode.z !== n.z) { if (!existingConfigNode || existingConfigNode._def.exclusive) { //} || !compareNodes(existingConfigNode,n,true) || existingConfigNode.z !== n.z) {