Fix small JS issue if the underlying repository has no branches defined

This allows the user to continue the setup, even if the repo is empty.
This commit is contained in:
Joseph Schorr 2015-06-01 15:37:02 -04:00
parent 491de200f6
commit d414111fa7

View file

@ -123,6 +123,7 @@ angular.module('quay').directive('triggerSetupGithost', function () {
ApiService.listBuildTriggerSubdirs($scope.trigger['config'], params).then(function(resp) {
if (resp['status'] == 'error') {
$scope.locations = [];
callback(resp['message'] || 'Could not load Dockerfile locations');
return;
}