Make sure, links are visible if visibility is undefined after a node-red update

This commit is contained in:
Benjamin Ihrig
2022-11-28 15:53:42 +01:00
parent 93d9294e77
commit a087d03b64

View File

@@ -99,8 +99,11 @@
if (n.visibility === "global") {
return true;
}
// visibility === "flow"
return n.z === node.z;
if (n.visibility === "flow") {
return n.z === node.z;
}
// undefined (after update)
return true;
});
let candidateNodesCount = 0;