mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 18:57:03 +02:00
fix: remove unnesesary use effect
This commit is contained in:
1 parent
0308a10690
commit
75c6bf2b68
1 file changed
-4
@@ -118,10 +118,6 @@ export function TankSearch({ compact, onSelect = () => {} }: TankSearchProps) {
|
||||
const firstChunk = searchResultsPageSlice.slice(0, chunkSize);
|
||||
const secondChunk = searchResultsPageSlice.slice(chunkSize);
|
||||
|
||||
useEffect(() => {
|
||||
setSearchedList(searchableTanks);
|
||||
if (input.current) input.current.value = '';
|
||||
}, [searchableTanks]);
|
||||
useEffect(() => {
|
||||
mutateTankopediaPersistent((draft) => {
|
||||
draft.filters.page = Math.min(
|
||||
|
||||
Reference in new issue
Block a user