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

Fix table columns being hidden after changing any user preference (#3302)

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2021-07-07 15:48:00 -04:00 committed by GitHub
parent 17a8044647
commit fe443f462b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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));