From c9a33c60b248873ddddba1b6fc5a5ed8ed695691 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Tue, 15 Jul 2014 11:57:46 -0400 Subject: [PATCH] Make sure the applications array is defined so that a new app can be created even before the existing list has loaded --- static/js/app.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/static/js/app.js b/static/js/app.js index 804979230..e2c1ff5aa 100644 --- a/static/js/app.js +++ b/static/js/app.js @@ -2534,6 +2534,7 @@ quayApp.directive('applicationManager', function () { }, controller: function($scope, $element, ApiService) { $scope.loading = false; + $scope.applications = []; $scope.createApplication = function(appName) { if (!appName) { return; } @@ -2574,7 +2575,7 @@ quayApp.directive('applicationManager', function () { ApiService.getOrganizationApplications(null, params).then(function(resp) { $scope.loading = false; - $scope.applications = resp['applications']; + $scope.applications = resp['applications'] || []; }); };