do always show paging bar, so the user can change the limit even if there is only one page available

Signed-off-by: Andreas Berger <andreas@berger-ecommerce.com>
This commit is contained in:
Andreas Berger
2025-01-20 08:42:54 +01:00
parent cf02a9ce06
commit 7e07b11048
@@ -47,8 +47,6 @@ export function OffsetPaginatedCatalogTable(
setOffset(Math.max(0, newOffset));
}, [setOffset, page, limit, totalItems, clientPagination]);
const showPagination = (totalItems ?? data.length) > limit;
return (
<Table
columns={columns}
@@ -57,7 +55,6 @@ export function OffsetPaginatedCatalogTable(
pageSizeOptions: [5, 10, 20, 50, 100],
pageSize: limit,
emptyRowsWhenPaging: false,
paging: showPagination,
...options,
}}
components={{