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:
@@ -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={{
|
||||
|
||||
Reference in New Issue
Block a user