From 7e07b110488a390ae1a6277236b7b14e324f7c87 Mon Sep 17 00:00:00 2001 From: Andreas Berger Date: Mon, 20 Jan 2025 08:42:54 +0100 Subject: [PATCH] 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 --- .../components/CatalogTable/OffsetPaginatedCatalogTable.tsx | 3 --- 1 file changed, 3 deletions(-) diff --git a/plugins/catalog/src/components/CatalogTable/OffsetPaginatedCatalogTable.tsx b/plugins/catalog/src/components/CatalogTable/OffsetPaginatedCatalogTable.tsx index 2f7e5a168e..e2954e30cb 100644 --- a/plugins/catalog/src/components/CatalogTable/OffsetPaginatedCatalogTable.tsx +++ b/plugins/catalog/src/components/CatalogTable/OffsetPaginatedCatalogTable.tsx @@ -47,8 +47,6 @@ export function OffsetPaginatedCatalogTable( setOffset(Math.max(0, newOffset)); }, [setOffset, page, limit, totalItems, clientPagination]); - const showPagination = (totalItems ?? data.length) > limit; - return (