diff --git a/packages/core/src/store/actions.ts b/packages/core/src/store/actions.ts index 7f6edad6e..dff8e1db7 100644 --- a/packages/core/src/store/actions.ts +++ b/packages/core/src/store/actions.ts @@ -37,7 +37,7 @@ export function useActions( state.hooks.updateNodeInternals.trigger(updateIds) } - const findNode: Actions['findNode'] = (id) => { + const findNode: Actions['findNode'] = (id: string | undefined) => { if (!id) { return } @@ -52,7 +52,7 @@ export function useActions( return node as T | undefined } - const findEdge: Actions['findEdge'] = (id) => { + const findEdge: Actions['findEdge'] = (id: string | undefined) => { if (!id) { return }