From ef4af2cffc288c1125191ec4ddf06099be1bcd7b Mon Sep 17 00:00:00 2001 From: Remko Date: Wed, 18 Oct 2023 10:49:05 +0200 Subject: [PATCH] Wrong page bugfix --- pwa/src/templates/landing/LandingTemplate.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pwa/src/templates/landing/LandingTemplate.tsx b/pwa/src/templates/landing/LandingTemplate.tsx index f7b1ac3c..01a3d29f 100644 --- a/pwa/src/templates/landing/LandingTemplate.tsx +++ b/pwa/src/templates/landing/LandingTemplate.tsx @@ -23,6 +23,10 @@ export const LandingTemplate: React.FC = () => { const queryClient = new QueryClient(); const getItems = useOpenWoo(queryClient).getAll(filters, currentPage, queryLimit.objectsQueryLimit); + React.useEffect(() => { + setCurrentPage(1); + }, [queryLimit.objectsQueryLimit]); + return ( <>