Merge pull request #58 from coreos-inc/gitjsfix

Fix small JS issue if the underlying repository has no branches defined
This commit is contained in:
Jimmy Zelinskie 2015-06-01 16:10:04 -04:00
commit b7adacb36b

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;
}