Skip to content

Commit

Permalink
perf(grid): groupBy selection getter filter w/ set instead of array
Browse files Browse the repository at this point in the history
  • Loading branch information
damyanpetev committed Nov 12, 2021
1 parent 25e550a commit 78a174b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,8 @@ export class IgxGridGroupByRowComponent implements OnDestroy {
* @hidden @internal
*/
public get selectedRowsInTheGroup(): any[] {
const selectedIds = this.gridSelection.filteredSelectedRowIds;
return this.groupRow.records.filter(rowID => selectedIds.indexOf(this.getRowID(rowID)) > -1);
const selectedIds = new Set(this.gridSelection.filteredSelectedRowIds);
return this.groupRow.records.filter(rowID => selectedIds.has(this.getRowID(rowID)));
}

/**
Expand Down

0 comments on commit 78a174b

Please sign in to comment.