From 60f29eea6aedcb764dd7fd4e2b3b7e540a149c18 Mon Sep 17 00:00:00 2001 From: nick-delirium Date: Wed, 30 Oct 2024 11:43:50 +0100 Subject: [PATCH] ui: fix live session pagination --- .../components/shared/LiveSessionList/LiveSessionList.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/app/components/shared/LiveSessionList/LiveSessionList.tsx b/frontend/app/components/shared/LiveSessionList/LiveSessionList.tsx index 943ff54eb..e3cf5e41f 100644 --- a/frontend/app/components/shared/LiveSessionList/LiveSessionList.tsx +++ b/frontend/app/components/shared/LiveSessionList/LiveSessionList.tsx @@ -21,8 +21,9 @@ function LiveSessionList() { const { searchStoreLive, sessionStore, customFieldStore } = useStore(); const filter = searchStoreLive.instance; const list = sessionStore.liveSessions; + const totalLiveSessions = sessionStore.totalLiveSessions; const loading = sessionStore.loadingLiveSessions; - const { currentPage, total } = searchStoreLive; + const { currentPage } = searchStoreLive; const metaList = customFieldStore.list; const metaListLoading = customFieldStore.isLoading; @@ -164,7 +165,7 @@ function LiveSessionList() { searchStoreLive.updateCurrentPage(page)} limit={PER_PAGE} debounceRequest={500}