Skip to content

Commit

Permalink
fix: fixed removal of column leading to no refresh (#300)
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminPabst authored Jul 1, 2024
1 parent 4885aac commit 47ee1c9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ export class CustomGroupColumnSelectorComponent {
const colIdsBefore = this.displayedColumns.map((column) => column.id)
const colIdsAfter = this.displayedColumnsModel.map((column) => column.id)

if (!colIdsAfter.every((colId, i) => colId === colIdsBefore[i])) {
if ((!colIdsAfter.every((colId, i) => colId === colIdsBefore[i])) ||
colIdsAfter.length != colIdsBefore.length) {
this.columnSelectionChanged.emit({ activeColumns: [...this.displayedColumnsModel] })
}

Expand Down

0 comments on commit 47ee1c9

Please sign in to comment.