Skip to content

Commit 2ac5c9a

Browse files
committed
update getGroupColumns in columns_controller
1 parent 843290e commit 2ac5c9a

1 file changed

Lines changed: 2 additions & 12 deletions

File tree

packages/devextreme/js/__internal/grids/grid_core/columns_controller/m_columns_controller.ts

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -466,21 +466,11 @@ export class ColumnsController extends modules.Controller {
466466
return this.getColumns().some((column) => column.isBand);
467467
}
468468

469-
private _columnCanBeGrouped(column) {
470-
if (column?.type) return false;
471-
472-
return isDefined(column.groupIndex) && !column.type;
473-
}
474-
475469
public getGroupColumns() {
476470
const result: any = [];
477471

478-
const columnCanBeGrouped = this._columnCanBeGrouped;
479-
480-
each(this._columns, function () {
481-
const column = this;
482-
483-
if (columnCanBeGrouped(column)) {
472+
(this._columns as Column[]).forEach((column) => {
473+
if (isDefined(column.groupIndex) && !column.type) {
484474
result[column.groupIndex] = column;
485475
}
486476
});

0 commit comments

Comments
 (0)