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 authored and GitHub committed 2021-07-07 15:48:00 -04:00
1 parent 17a8044647
commit fe443f462b
1 file changed
+2 -2
+2 -2
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));