diff --git a/ui/js/directives/main.js b/ui/js/directives/main.js index f1a3387ca..11c416c42 100755 --- a/ui/js/directives/main.js +++ b/ui/js/directives/main.js @@ -191,11 +191,12 @@ treeherder.directive("thTruncatedList", [ restrict: "E", scope: { // number of visible elements - visible: "@", + numvisible: "@", elem_list: "=elements" }, link: function(scope, element, attrs){ - scope.visible = parseInt(scope.visible) + scope.visible = parseInt(scope.numvisible) + if(typeof scope.visible !== 'number' || scope.visible < 0 || isNaN(scope.visible)){ diff --git a/ui/partials/main/thSheriffPanel.html b/ui/partials/main/thSheriffPanel.html index c2892349c..9068ec98b 100644 --- a/ui/partials/main/thSheriffPanel.html +++ b/ui/partials/main/thSheriffPanel.html @@ -99,10 +99,10 @@