Commit 09af97a5 by jaymehta

paginationissue

1 parent a9e14ec7
...@@ -46,7 +46,10 @@ const ListingItems = ({ allActivitiesData, loading, gridClass, totalCount }) => ...@@ -46,7 +46,10 @@ const ListingItems = ({ allActivitiesData, loading, gridClass, totalCount }) =>
}); });
}; };
console.log("page", page); console.log("page", page);
useEffect(() => {
dispatch(getActivitiesByFilters({ currentPage: page }));
}, [page])
return ( return (
<> <>
{allActivitiesData && !allActivitiesData.data.length == 0 ? ( {allActivitiesData && !allActivitiesData.data.length == 0 ? (
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!