From 129bb3f8c5c333b6024af78e060d69a9b462b494 Mon Sep 17 00:00:00 2001 From: Heather Lee Date: Wed, 5 May 2021 17:02:41 -0700 Subject: [PATCH] Adjust type column to render as a result of overridden columns, or key off defaultColumns if nothing is passed in Signed-off-by: Heather Lee --- plugins/catalog/src/components/CatalogTable/CatalogTable.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/catalog/src/components/CatalogTable/CatalogTable.tsx b/plugins/catalog/src/components/CatalogTable/CatalogTable.tsx index d8e152ed75..03dece50fe 100644 --- a/plugins/catalog/src/components/CatalogTable/CatalogTable.tsx +++ b/plugins/catalog/src/components/CatalogTable/CatalogTable.tsx @@ -150,7 +150,7 @@ export const CatalogTable = ({ }; }); - const typeColumn = defaultColumns.find(c => c.title === 'Type'); + const typeColumn = (columns || defaultColumns).find(c => c.title === 'Type'); if (typeColumn) { typeColumn.hidden = view !== 'Other'; }