From 75c6bf2b6868d2b55cd78bd29d66fa9a26021112 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=C3=A8sAbhi?= <43380238+tresabhi@users.noreply.github.com> Date: Wed, 7 Feb 2024 20:39:11 -0600 Subject: [PATCH] fix: remove unnesesary use effect --- src/app/tools/tankopedia/components/TankSearch/index.tsx | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/app/tools/tankopedia/components/TankSearch/index.tsx b/src/app/tools/tankopedia/components/TankSearch/index.tsx index 9f1d4d9aa..d31f86f75 100644 --- a/src/app/tools/tankopedia/components/TankSearch/index.tsx +++ b/src/app/tools/tankopedia/components/TankSearch/index.tsx @@ -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(