diff --git a/packages/orchestrator-ui-components/src/utils/getDefaultTableConfig.ts b/packages/orchestrator-ui-components/src/utils/getDefaultTableConfig.ts index e4ff963cb..536fea8be 100644 --- a/packages/orchestrator-ui-components/src/utils/getDefaultTableConfig.ts +++ b/packages/orchestrator-ui-components/src/utils/getDefaultTableConfig.ts @@ -14,6 +14,7 @@ import type { StoredTableConfig } from '../components'; import { ProductBlockDefinition, ProductDefinition, + ResourceTypeDefinition, WorkflowDefinition, } from '../types'; @@ -42,6 +43,12 @@ export const getDefaultTableConfig = (storageKey: string) => { ]; return getTableConfig(productBlockColumns as (keyof T)[]); + case METADATA_RESOURCE_TYPES_TABLE_LOCAL_STORAGE_KEY: + const resourceTypeColumns: (keyof ResourceTypeDefinition)[] = [ + 'resourceTypeId', + ]; + return getTableConfig(resourceTypeColumns as (keyof T)[]); + case METADATA_PRODUCT_TABLE_LOCAL_STORAGE_KEY: const productColumns: (keyof ProductDefinition)[] = [ 'productId', @@ -82,7 +89,6 @@ export const getDefaultTableConfig = (storageKey: string) => { 'productName', ]; return getTableConfig(subscriptionColumns as (keyof T)[]); - case METADATA_RESOURCE_TYPES_TABLE_LOCAL_STORAGE_KEY: default: return getTableConfig(); }