Merge pull request #25114 from piatkiewicz/master

Fix bug with missing Actions column after adding pagination property
This commit is contained in:
Fredrik Adelöw
2024-06-10 17:13:41 +02:00
committed by GitHub
2 changed files with 8 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-catalog': patch
---
Fix bug with missing Actions column after adding "pagination" prop to catalog table
@@ -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}
/>
);
}