From 8c1f0e92e24e9e6b6082302124286d6287d21964 Mon Sep 17 00:00:00 2001 From: Andreas Berger Date: Fri, 17 Jan 2025 16:08:41 +0100 Subject: [PATCH] clean up code Signed-off-by: Andreas Berger --- .../components/CatalogTable/OffsetPaginatedCatalogTable.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/catalog/src/components/CatalogTable/OffsetPaginatedCatalogTable.tsx b/plugins/catalog/src/components/CatalogTable/OffsetPaginatedCatalogTable.tsx index d27754ee29..0bec07722e 100644 --- a/plugins/catalog/src/components/CatalogTable/OffsetPaginatedCatalogTable.tsx +++ b/plugins/catalog/src/components/CatalogTable/OffsetPaginatedCatalogTable.tsx @@ -67,8 +67,8 @@ export function OffsetPaginatedCatalogTable( ? {} : { page, - onPageChange: newPage => setPage(newPage), - onRowsPerPageChange: pageSize => setLimit(pageSize), + onPageChange: setPage, + onRowsPerPageChange: setLimit, totalCount: totalItems, })} {...restProps}