Skip to content

Commit 4c7495e

Browse files
committed
fix(merging): applying a performance improv for merging pipe
1 parent 4d1c477 commit 4c7495e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

projects/igniteui-angular/src/lib/grids/grid/grid.pipes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export class IgxGridCellMergePipe implements PipeTransform {
9090
if (colsToMerge.length === 0) {
9191
return collection;
9292
}
93-
if (!pinned && this.grid.pinning.rows !== RowPinningPosition.Bottom) {
93+
if (this.grid.hasPinnedRecords && !pinned && this.grid.pinning.rows !== RowPinningPosition.Bottom) {
9494
activeRowIndexes = activeRowIndexes.map(x => x - this.grid.pinnedRecordsCount);
9595
}
9696
const result = DataUtil.merge(cloneArray(collection), colsToMerge, mergeStrategy, activeRowIndexes, this.grid);

0 commit comments

Comments
 (0)