From bcf7cd0479a5805a799c29d61c9bf2f0031922bd Mon Sep 17 00:00:00 2001 From: "MSI\\2Fi" Date: Tue, 30 Jul 2024 18:05:25 +0800 Subject: [PATCH] Add comment --- src/components/SearchResults/SearchResults.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/SearchResults/SearchResults.tsx b/src/components/SearchResults/SearchResults.tsx index 61f20a8..4d7fd4c 100644 --- a/src/components/SearchResults/SearchResults.tsx +++ b/src/components/SearchResults/SearchResults.tsx @@ -60,6 +60,8 @@ function SearchResults({ const [rowsPerPage, setRowsPerPage] = React.useState(10); const { t } = useTranslation() + // When filtering the seraching critera, update the page to 0 + // Please removce when the search Result has error useEffect(() => { setPage(0); }, [items]);