From 03242dde9b162cb4e8d58fb031d67cf0fd2fd508 Mon Sep 17 00:00:00 2001 From: braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Tue, 17 Oct 2023 19:18:55 +0200 Subject: [PATCH] feat(core): use nodes from state for `getIntersectingNodes` --- packages/core/src/store/actions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/store/actions.ts b/packages/core/src/store/actions.ts index 56a79395..effe7a1a 100644 --- a/packages/core/src/store/actions.ts +++ b/packages/core/src/store/actions.ts @@ -672,7 +672,7 @@ export function useActions( } // todo: rename to `findIntersectingNodes` - const getIntersectingNodes: Actions['getIntersectingNodes'] = (nodeOrRect, partially = true, nodes) => { + const getIntersectingNodes: Actions['getIntersectingNodes'] = (nodeOrRect, partially = true, nodes = state.nodes) => { const [nodeRect, node, isRect] = getNodeRect(nodeOrRect) if (!nodeRect) {