From d414111fa71220f68e69677757f9192710a07760 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Mon, 1 Jun 2015 15:37:02 -0400 Subject: [PATCH] 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. --- static/js/directives/ui/trigger-setup-githost.js | 1 + 1 file changed, 1 insertion(+) diff --git a/static/js/directives/ui/trigger-setup-githost.js b/static/js/directives/ui/trigger-setup-githost.js index 9ad3bcf8f..03be87852 100644 --- a/static/js/directives/ui/trigger-setup-githost.js +++ b/static/js/directives/ui/trigger-setup-githost.js @@ -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; }