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 <heatherl@splunk.com>
This commit is contained in:
Heather Lee
2021-05-05 17:02:41 -07:00
parent d7ef50d964
commit 129bb3f8c5
@@ -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';
}