Skip to content

Commit 29eb6e1

Browse files
committedJan 29, 2016
Merge pull request #5000 from dlgski/sortpriority
fix(core): check for undefined on sort priority
2 parents 3a39033 + b55bc7c commit 29eb6e1

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

Lines changed: 2 additions & 2 deletions
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 && $scope.grid.columns.some(function(element, index){
37-
return element.sort.priority && element !== $scope.col;
36+
return $scope.col.sort.priority !== undefined && $scope.grid.columns.some(function(element, index){
37+
return element.sort.priority !== undefined && element !== $scope.col;
3838
});
3939
};
4040
$scope.getSortDirectionAriaLabel = function(){

0 commit comments

Comments
 (0)