File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed
projects/igniteui-angular/src/lib/data-operations Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -150,8 +150,20 @@ export class IgxSorting implements IGridSortingStrategy {
150150 fullResult . data . push ( groupItem ) ;
151151 }
152152 if ( expanded ) {
153- metadata . push ( ...fullResult . metadata . slice ( fullResult . metadata . length - group . length ) ) ;
154- result . push ( ...fullResult . data . slice ( fullResult . data . length - group . length ) ) ;
153+ // Replaced object destructing as in a single big group scenario
154+ // it hits the max number of arguments for a function the underlying JS engine
155+ // supports.
156+ let j = fullResult . metadata . length - group . length ;
157+
158+ for ( ; j < fullResult . metadata . length ; j ++ ) {
159+ metadata . push ( fullResult . metadata [ j ] ) ;
160+ }
161+
162+ j = fullResult . data . length - group . length ;
163+
164+ for ( ; j < fullResult . data . length ; j ++ ) {
165+ result . push ( fullResult . data [ j ] ) ;
166+ }
155167 }
156168 }
157169 i += group . length ;
You can’t perform that action at this time.
0 commit comments