This commit is contained in:
Jan Prochazka
2021-12-09 13:20:10 +01:00
parent 60333cbbd7
commit fd531cfd1f
4 changed files with 26 additions and 19 deletions

View File

@@ -22,13 +22,14 @@ export class FreeTableGridDisplay extends GridDisplay {
}
getDisplayColumns(model: FreeTableModel) {
return (
return _.uniqBy(
model?.structure?.columns
?.map(col => this.getDisplayColumn(col))
?.map(col => ({
...col,
isChecked: this.isColumnChecked(col),
})) || []
})) || [],
col => col.uniqueName
);
}