refactor(core): check if node handle bounds exist in getNodesInitialized
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
@@ -102,7 +102,9 @@ export function useGetters(state: State): ComputedGetters {
|
|||||||
...(getSelectedEdges.value ?? []),
|
...(getSelectedEdges.value ?? []),
|
||||||
])
|
])
|
||||||
|
|
||||||
const getNodesInitialized: ComputedGetters['getNodesInitialized'] = computed(() => getNodes.value.filter((n) => n.initialized))
|
const getNodesInitialized: ComputedGetters['getNodesInitialized'] = computed(() =>
|
||||||
|
getNodes.value.filter((n) => n.initialized && n.handleBounds !== undefined),
|
||||||
|
)
|
||||||
|
|
||||||
return {
|
return {
|
||||||
getNode,
|
getNode,
|
||||||
|
|||||||
Reference in New Issue
Block a user