diff --git a/static/js/controllers.js b/static/js/controllers.js index d63586c27..1690a5ce5 100644 --- a/static/js/controllers.js +++ b/static/js/controllers.js @@ -1166,7 +1166,7 @@ function RepoBuildCtrl($scope, Restangular, ApiService, $routeParams, $rootScope if ($location.search().current) { $scope.setCurrentBuild($location.search().current, false); } else if ($scope.builds.length > 0) { - $scope.setCurrentBuild($scope.builds[$scope.builds.length - 1].id, true); + $scope.setCurrentBuild($scope.builds[0].id, true); } }); };