fix: selectedSite doesn't need to be in useCallback deps

This commit is contained in:
Derrick Hammer 2023-12-23 07:28:20 -05:00
parent 917511a449
commit 35ca7b1ea5
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ const SearchBar = ({ sites }: { sites: SiteList }) => {
event.preventDefault(); event.preventDefault();
doSearch(); doSearch();
}, },
[query, selectedSite] [query]
); );
function doSearch() { function doSearch() {