1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Fix table columns defaulting to hidden

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2021-07-07 08:38:08 -04:00
parent 17a8044647
commit 37a0fce956

View File

@ -118,13 +118,13 @@ export class UserStore extends BaseStore<UserStoreModel> /* implements UserStore
*/
isTableColumnHidden(tableId: string, ...columnIds: string[]): boolean {
if (columnIds.length === 0) {
return true;
return false;
}
const config = this.hiddenTableColumns.get(tableId);
if (!config) {
return true;
return false;
}
return columnIds.some(columnId => config.has(columnId));