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
1 changed files with 4 additions and 0 deletions

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) {