Skip to content

Commit 5aa34e5

Browse files
prx-lmomportuga
authored andcommitted
[hotfix/3360]
- fixed col undefined error on grouping
1 parent a880477 commit 5aa34e5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/core/src/js/services/rowSorter.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -384,9 +384,9 @@ module.service('rowSorter', ['uiGridConstants', function (uiGridConstants) {
384384

385385
// Now actually sort the data
386386
var rowSortFn = function (rowA, rowB) {
387-
var tem = 0,
388-
idx = 0,
389-
sortFn;
387+
var tem = 0,
388+
idx = 0,
389+
sortFn;
390390

391391
while (tem === 0 && idx < sortCols.length) {
392392
// grab the metadata for the rest of the logic

packages/grouping/src/js/grouping.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -953,7 +953,7 @@
953953
var fieldValue = grid.getCellValue(row, groupFieldState.col);
954954

955955
// look for change of value - and insert a header
956-
if ( !groupFieldState.initialised || rowSorter.getSortFn(grid, groupFieldState.col, renderableRows)(fieldValue, groupFieldState.currentValue) !== 0 ) {
956+
if ( !groupFieldState.initialised || rowSorter.getSortFn(groupFieldState.col)(fieldValue, groupFieldState.currentValue) !== 0 ) {
957957
service.insertGroupHeader( grid, renderableRows, i, processingState, stateIndex );
958958
i++;
959959
}

0 commit comments

Comments
 (0)