Resolved an issue where the PaginatedCatalogTable was not propagating table options to its child table.

Signed-off-by: Nick Bodiford <nbodiford@spotify.com>
This commit is contained in:
Nick Bodiford
2024-03-13 15:05:29 -05:00
parent bf2c435983
commit 50b668777a
2 changed files with 7 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-catalog': patch
---
Resolved an issue where the `PaginatedCatalogTable` was not propagating table options to its child table.
@@ -32,7 +32,7 @@ type PaginatedCatalogTableProps = {
* @internal
*/
export function PaginatedCatalogTable(props: PaginatedCatalogTableProps) {
const { columns, data, next, prev, title, isLoading } = props;
const { columns, data, next, prev, title, isLoading, options } = props;
const { updateFilters } = useEntityList();
return (
@@ -46,6 +46,7 @@ export function PaginatedCatalogTable(props: PaginatedCatalogTableProps) {
showFirstLastPageButtons: false,
pageSize: Number.MAX_SAFE_INTEGER,
emptyRowsWhenPaging: false,
...options,
}}
onSearchChange={(searchText: string) =>
updateFilters({