diff --git a/libs/angular-accelerator/src/lib/components/custom-group-column-selector/custom-group-column-selector.component.ts b/libs/angular-accelerator/src/lib/components/custom-group-column-selector/custom-group-column-selector.component.ts index cce9182d..492819b9 100644 --- a/libs/angular-accelerator/src/lib/components/custom-group-column-selector/custom-group-column-selector.component.ts +++ b/libs/angular-accelerator/src/lib/components/custom-group-column-selector/custom-group-column-selector.component.ts @@ -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] }) }