Skip to content

Commit 2e83004

Browse files
committed
perf(grid): groupBy selection getter filter w/ set instead of array
1 parent 154892f commit 2e83004

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

projects/igniteui-angular/src/lib/grids/grid/groupby-row.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,8 +278,8 @@ export class IgxGridGroupByRowComponent implements OnDestroy {
278278
* @hidden @internal
279279
*/
280280
public get selectedRowsInTheGroup(): any[] {
281-
const selectedIds = this.gridSelection.filteredSelectedRowIds;
282-
return this.groupRow.records.filter(rowID => selectedIds.indexOf(this.getRowID(rowID)) > -1);
281+
const selectedIds = new Set(this.gridSelection.filteredSelectedRowIds);
282+
return this.groupRow.records.filter(rowID => selectedIds.has(this.getRowID(rowID)));
283283
}
284284

285285
/**

0 commit comments

Comments
 (0)