ui: fix live session pagination
This commit is contained in:
parent
131f5663fa
commit
60f29eea6a
1 changed files with 3 additions and 2 deletions
|
|
@ -21,8 +21,9 @@ function LiveSessionList() {
|
||||||
const { searchStoreLive, sessionStore, customFieldStore } = useStore();
|
const { searchStoreLive, sessionStore, customFieldStore } = useStore();
|
||||||
const filter = searchStoreLive.instance;
|
const filter = searchStoreLive.instance;
|
||||||
const list = sessionStore.liveSessions;
|
const list = sessionStore.liveSessions;
|
||||||
|
const totalLiveSessions = sessionStore.totalLiveSessions;
|
||||||
const loading = sessionStore.loadingLiveSessions;
|
const loading = sessionStore.loadingLiveSessions;
|
||||||
const { currentPage, total } = searchStoreLive;
|
const { currentPage } = searchStoreLive;
|
||||||
const metaList = customFieldStore.list;
|
const metaList = customFieldStore.list;
|
||||||
const metaListLoading = customFieldStore.isLoading;
|
const metaListLoading = customFieldStore.isLoading;
|
||||||
|
|
||||||
|
|
@ -164,7 +165,7 @@ function LiveSessionList() {
|
||||||
</div>
|
</div>
|
||||||
<Pagination
|
<Pagination
|
||||||
page={currentPage}
|
page={currentPage}
|
||||||
total={total}
|
total={totalLiveSessions}
|
||||||
onPageChange={(page: any) => searchStoreLive.updateCurrentPage(page)}
|
onPageChange={(page: any) => searchStoreLive.updateCurrentPage(page)}
|
||||||
limit={PER_PAGE}
|
limit={PER_PAGE}
|
||||||
debounceRequest={500}
|
debounceRequest={500}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue