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:
@@ -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';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user