fix missing actions after adding pagination to catalog table #25097

Signed-off-by: Piotr Piątkiewicz <piatkiewicz.piotr@gmail.com>
This commit is contained in:
Piotr Piątkiewicz
2024-06-10 15:04:54 +02:00
parent 8eebaef57d
commit 96091d32d0
@@ -29,7 +29,8 @@ type PaginatedCatalogTableProps = {
* @internal
*/
export function PaginatedCatalogTable(props: PaginatedCatalogTableProps) {
const { columns, data, next, prev, title, isLoading, options } = props;
const { columns, data, next, prev, title, isLoading, options, ...restProps } =
props;
return (
<Table
@@ -60,6 +61,7 @@ export function PaginatedCatalogTable(props: PaginatedCatalogTableProps) {
/* this will enable the next button accordingly */
totalCount={next ? Number.MAX_VALUE : Number.MAX_SAFE_INTEGER}
localization={{ pagination: { labelDisplayedRows: '' } }}
{...restProps}
/>
);
}