From 372224b19f24772b378fddfb11fd4533b5ca4c3e Mon Sep 17 00:00:00 2001 From: jakedt Date: Thu, 6 Mar 2014 12:51:20 -0500 Subject: [PATCH] Select the most recent build. --- static/js/controllers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }); };