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) {