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:
commit
b7adacb36b
1 changed files with 1 additions and 0 deletions
|
@ -123,6 +123,7 @@ angular.module('quay').directive('triggerSetupGithost', function () {
|
||||||
|
|
||||||
ApiService.listBuildTriggerSubdirs($scope.trigger['config'], params).then(function(resp) {
|
ApiService.listBuildTriggerSubdirs($scope.trigger['config'], params).then(function(resp) {
|
||||||
if (resp['status'] == 'error') {
|
if (resp['status'] == 'error') {
|
||||||
|
$scope.locations = [];
|
||||||
callback(resp['message'] || 'Could not load Dockerfile locations');
|
callback(resp['message'] || 'Could not load Dockerfile locations');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue