Skip to content

Commit

Permalink
Wrong page bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
remko48 committed Oct 18, 2023
1 parent c094cee commit ef4af2c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pwa/src/templates/landing/LandingTemplate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<>
<JumbotronTemplate />
Expand Down

0 comments on commit ef4af2c

Please sign in to comment.