File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -360,10 +360,11 @@ export default class CellManager {
360
360
361
361
colIndex1 = + cell1 . colIndex ;
362
362
colIndex2 = + cell2 . colIndex ;
363
- if ( this . datamanager . getColumn ( colIndex1 ) . sortOrder != 'none' || this . datamanager . getColumn ( colIndex2 ) . sortOrder != 'none' ) {
363
+ if ( this . datamanager . getColumn ( colIndex1 ) . sortOrder !== 'none' ||
364
+ this . datamanager . getColumn ( colIndex2 ) . sortOrder !== 'none' ) {
364
365
sortedColumn = true ;
365
- rowIndex1 = this . datamanager . rowViewOrder . indexOf ( parseInt ( cell1 . rowIndex ) ) ;
366
- rowIndex2 = this . datamanager . rowViewOrder . indexOf ( parseInt ( cell2 . rowIndex ) ) ;
366
+ rowIndex1 = this . datamanager . rowViewOrder . indexOf ( parseInt ( cell1 . rowIndex , 10 ) ) ;
367
+ rowIndex2 = this . datamanager . rowViewOrder . indexOf ( parseInt ( cell2 . rowIndex , 10 ) ) ;
367
368
} else {
368
369
rowIndex1 = + cell1 . rowIndex ;
369
370
rowIndex2 = + cell2 . rowIndex ;
@@ -401,7 +402,9 @@ export default class CellManager {
401
402
colIndex = colIndex1 ;
402
403
} ) ;
403
404
if ( sortedColumn ) {
404
- cells . map ( selectedCells => selectedCells [ 1 ] = this . datamanager . rowViewOrder [ selectedCells [ 1 ] ] ) ;
405
+ cells . forEach ( selectedCells => {
406
+ selectedCells [ 1 ] = this . datamanager . rowViewOrder [ selectedCells [ 1 ] ] ;
407
+ } ) ;
405
408
}
406
409
return cells ;
407
410
}
You can’t perform that action at this time.
0 commit comments