Select the most recent build.
This commit is contained in:
parent
9a733a7320
commit
372224b19f
1 changed files with 1 additions and 1 deletions
|
@ -1166,7 +1166,7 @@ function RepoBuildCtrl($scope, Restangular, ApiService, $routeParams, $rootScope
|
||||||
if ($location.search().current) {
|
if ($location.search().current) {
|
||||||
$scope.setCurrentBuild($location.search().current, false);
|
$scope.setCurrentBuild($location.search().current, false);
|
||||||
} else if ($scope.builds.length > 0) {
|
} else if ($scope.builds.length > 0) {
|
||||||
$scope.setCurrentBuild($scope.builds[$scope.builds.length - 1].id, true);
|
$scope.setCurrentBuild($scope.builds[0].id, true);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
Reference in a new issue