Skip to content

Commit 47c77de

Browse files
committed
fix(core): sort priorities were not displaying when 2nd sort was added
1 parent e588d59 commit 47c77de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/js/core/directives/ui-grid-header-cell.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
};
3434
$scope.isSortPriorityVisible = function() {
3535
//show sort priority if column is sorted and there is at least one other sorted column
36-
return $scope.col.sort.priority !== undefined && $scope.grid.columns.some(function(element, index){
37-
return element.sort.priority !== undefined && element !== $scope.col;
36+
return angular.isNumber($scope.col.sort.priority) && $scope.grid.columns.some(function(element, index){
37+
return angular.isNumber(element.sort.priority) && element !== $scope.col;
3838
});
3939
};
4040
$scope.getSortDirectionAriaLabel = function(){

0 commit comments

Comments
 (0)