From 6269a236d506ed8a9542aae4dfe438db823d5e6e Mon Sep 17 00:00:00 2001 From: Shahidullah Muffakir Date: Thu, 8 Feb 2024 20:10:41 +0530 Subject: [PATCH] Fix linting issues after review feedback --- src/hooks/useFocusNode.ts | 2 +- src/store/useGraph.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 {