From 62e606f27301d2b3d6868ef6e15a48c040208fa4 Mon Sep 17 00:00:00 2001 From: p-sw Date: Sat, 8 Jun 2024 02:46:23 +0900 Subject: [PATCH] fix(cli): update dependencies in SearchBox useEffect The dependencies array in the useEffect hook within SearchBox.tsx has been updated. The 'suggestions' variable has been added to the dependencies to ensure the function updates accordingly when this state changes. --- packages/cli/src/components/SearchBox.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cli/src/components/SearchBox.tsx b/packages/cli/src/components/SearchBox.tsx index 15d50ab..872778e 100644 --- a/packages/cli/src/components/SearchBox.tsx +++ b/packages/cli/src/components/SearchBox.tsx @@ -50,7 +50,7 @@ export function SearchBox({ setQueryMode(false) setQuery(suggestions[selected] ?? '') } - }, [selected, onChange]) + }, [selected, suggestions, onChange]) const app = useApp()