Merge pull request #23522 from nb-spot/fix/paginated-catalog-table-options
Resolved issue where`PaginatedCatalogTable` wasn't passing options
This commit is contained in:
@@ -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 (
|
||||
@@ -41,6 +41,8 @@ export function PaginatedCatalogTable(props: PaginatedCatalogTableProps) {
|
||||
columns={columns}
|
||||
data={data}
|
||||
options={{
|
||||
...options,
|
||||
// These settings are configured to force server side pagination
|
||||
paginationPosition: 'both',
|
||||
pageSizeOptions: [],
|
||||
showFirstLastPageButtons: false,
|
||||
|
||||
Reference in New Issue
Block a user