Skip to content

Commit 27a0296

Browse files
MKirovaMKirova
authored andcommitted
chore(*): Use concat due to argument count exceeded when splice large data.
1 parent 5477ee8 commit 27a0296

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ export class IgxGridUnmergeActivePipe implements PipeTransform {
129129
// if nothing to update, return
130130
return collection;
131131
}
132-
const result = cloneArray(collection) as any;
132+
let result = cloneArray(collection) as any;
133133
uniqueRoots.forEach(x => {
134134
const index = result.indexOf(x);
135135
const colKeys = [...x.cellMergeMeta.keys()];
@@ -152,7 +152,7 @@ export class IgxGridUnmergeActivePipe implements PipeTransform {
152152
this.grid);
153153

154154
}
155-
result.splice(index, res.length, ...res);
155+
result = result.slice(0, index).concat(res, result.slice(index + res.length));
156156
});
157157

158158

0 commit comments

Comments
 (0)