fix: selectedSite doesn't need to be in useCallback deps
This commit is contained in:
parent
917511a449
commit
35ca7b1ea5
|
@ -41,7 +41,7 @@ const SearchBar = ({ sites }: { sites: SiteList }) => {
|
|||
event.preventDefault();
|
||||
doSearch();
|
||||
},
|
||||
[query, selectedSite]
|
||||
[query]
|
||||
);
|
||||
|
||||
function doSearch() {
|
||||
|
|
Loading…
Reference in New Issue