fixed hiding columns + simplified algorithm #1

This commit is contained in:
Jan Prochazka
2021-12-02 16:21:29 +01:00
parent 7575b59f4f
commit bd12cd5c07
3 changed files with 39 additions and 21 deletions

View File

@@ -157,7 +157,7 @@ export abstract class GridDisplay {
}
get hiddenColumnIndexes() {
return (this.config.hiddenColumns || []).map(x => _.findIndex(this.columns, y => y.uniqueName == x));
return (this.config.hiddenColumns || []).map(x => _.findIndex(this.allColumns, y => y.uniqueName == x));
}
isColumnChecked(column: DisplayColumn) {