fix(core): orphaned edge warn for undeletable edges when calculating max z-index

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
braks
2023-05-05 11:02:58 +02:00
committed by Braks
parent 34c2258a4f
commit 74a51f4339
@@ -14,6 +14,7 @@ const {
elementsSelectable,
getSelectedNodes,
findNode,
edges,
getEdges,
getNodesInitialized,
getEdgeTypes,
@@ -46,7 +47,7 @@ const connectionLineVisible = controlledComputed(
const groups = controlledComputed(
[
() => getEdges.map((e) => e.zIndex),
() => edges.map((e) => e.zIndex),
() => (elevateEdgesOnSelect ? [getSelectedNodes.length] : [0]),
() => (elevateEdgesOnSelect ? getNodesInitialized.map((n) => n.computedPosition.z) : []),
],