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:
parent
491de200f6
commit
d414111fa7
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) {
|
||||
if (resp['status'] == 'error') {
|
||||
$scope.locations = [];
|
||||
callback(resp['message'] || 'Could not load Dockerfile locations');
|
||||
return;
|
||||
}
|
||||
|
|
Reference in a new issue