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

Only apply z-recovery logic to flow nodes

This commit is contained in:
Nick O'Leary 2020-10-19 13:23:43 +01:00
parent 12d56b8b03
commit e8e44f9a32
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -1150,7 +1150,7 @@ RED.nodes = (function() {
if (n.z) {
nodeZmap[n.z] = nodeZmap[n.z] || [];
nodeZmap[n.z].push(n);
} else if (n.z === 0) {
} else if (n.hasOwnProperty('x') && n.hasOwnProperty('y') && !n.z) {
// Hit the rare issue where node z values get set to 0.
// Repair the flow - but we really need to track that down.
if (!recoveryWorkspace) {