From 7bfce4cd1d84f874eeca3777199f3c6d10c9f5f3 Mon Sep 17 00:00:00 2001 From: cristhianzl Date: Thu, 30 Nov 2023 17:38:54 -0300 Subject: [PATCH] feat(StorePage): add resetPagination function to reset page index and page size when changing tabs --- src/frontend/src/pages/StorePage/index.tsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/frontend/src/pages/StorePage/index.tsx b/src/frontend/src/pages/StorePage/index.tsx index a135752c9..43067c7e3 100644 --- a/src/frontend/src/pages/StorePage/index.tsx +++ b/src/frontend/src/pages/StorePage/index.tsx @@ -157,6 +157,11 @@ export default function StorePage(): JSX.Element { setTabId(""); }, []); + function resetPagination() { + setPageIndex(1); + setPageSize(12); + } + return ( { + resetPagination(); setTabActive("Flows"); }} className={ @@ -244,6 +250,7 @@ export default function StorePage(): JSX.Element {