From 35ca7b1ea51c9fdee30a0be0f5c1783aeba9b40d Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sat, 23 Dec 2023 07:28:20 -0500 Subject: [PATCH] fix: selectedSite doesn't need to be in useCallback deps --- app/components/SearchBar.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/SearchBar.tsx b/app/components/SearchBar.tsx index 20886de..ae258b8 100644 --- a/app/components/SearchBar.tsx +++ b/app/components/SearchBar.tsx @@ -41,7 +41,7 @@ const SearchBar = ({ sites }: { sites: SiteList }) => { event.preventDefault(); doSearch(); }, - [query, selectedSite] + [query] ); function doSearch() {