diff --git a/src/hooks/useFocusNode.ts b/src/hooks/useFocusNode.ts index af79b2044fd..da0446eb847 100644 --- a/src/hooks/useFocusNode.ts +++ b/src/hooks/useFocusNode.ts @@ -36,7 +36,7 @@ export const useFocusNode = () => { setSelectedNode(0); setNodeCount(0); } - }, [selectedNode, debouncedValue, value, viewPort, matchedNodes]); + }, [selectedNode, debouncedValue, value, viewPort, matchedNodes, matchedNode]); return [value, setValue, skip, nodeCount, selectedNode] as const; }; diff --git a/src/store/useGraph.ts b/src/store/useGraph.ts index 0c97d8ee8ad..4f0ef356ba6 100644 --- a/src/store/useGraph.ts +++ b/src/store/useGraph.ts @@ -38,7 +38,7 @@ const initialStates: Graph = { collapsedParents: [], selectedNode: null, path: "", - searchInputValue:"", + searchInputValue: "", }; interface GraphActions {