diff --git a/plugins/catalog/src/components/CatalogTable/CatalogTable.tsx b/plugins/catalog/src/components/CatalogTable/CatalogTable.tsx
index c5eddce118..beba77aee5 100644
--- a/plugins/catalog/src/components/CatalogTable/CatalogTable.tsx
+++ b/plugins/catalog/src/components/CatalogTable/CatalogTable.tsx
@@ -221,7 +221,15 @@ export const CatalogTable = (props: CatalogTableProps) => {
return (
);
}
@@ -230,11 +238,11 @@ export const CatalogTable = (props: CatalogTableProps) => {
);
@@ -245,8 +253,8 @@ function LegacyCatalogTable(props: {
actions?: TableProps['actions'];
columns: TableColumn[];
emptyContent: React.ReactNode;
- entities: Entity[];
- loading: boolean;
+ data: Entity[];
+ isLoading: boolean;
options?: TableProps['options'];
subtitle?: string;
title: string;
@@ -255,26 +263,26 @@ function LegacyCatalogTable(props: {
actions,
columns,
emptyContent,
- entities,
- loading,
+ data,
+ isLoading,
subtitle,
options,
title,
} = props;
- const rows = entities.sort(refCompare).map(toEntityRow);
+ const rows = data.sort(refCompare).map(toEntityRow);
const showPagination = rows.length > 20;
return (
- isLoading={loading}
+ isLoading={isLoading}
columns={columns}
options={{
paging: showPagination,
pageSize: 20,
actionsColumnIndex: -1,
loadingType: 'linear',
- showEmptyDataSourceMessage: !loading,
+ showEmptyDataSourceMessage: !isLoading,
padding: 'dense',
pageSizeOptions: [20, 50, 100],
...options,