fix pagination info for all tanstak-tables
This commit is contained in:
@@ -47,6 +47,7 @@ export function TrackingHistoryView() {
|
||||
refetch
|
||||
} = useHistoryView(pagination.pageIndex, pagination.pageSize, locale, getSortParams.sortOrder, getSortParams.sortBy);
|
||||
|
||||
const totalElements = apiResponse?.totalElements || 0
|
||||
const tableData = apiResponse?.history || [];
|
||||
const totalPages = apiResponse?.totalPages || 0;
|
||||
|
||||
@@ -381,7 +382,7 @@ export function TrackingHistoryView() {
|
||||
{t('page')}{' '}
|
||||
<strong>
|
||||
{pagination.pageIndex + 1} {t('out-of')} {totalPages || 1}
|
||||
</strong>
|
||||
</strong> | {t('total-document-openings')}: {totalElements}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user