Skip to content

Commit

Permalink
fix(provider/cf): ensure regions are initialized before rendering
Browse files Browse the repository at this point in the history
Co-Authored-By: Stu Pollock <spollock@pivotal.io>
  • Loading branch information
2 people authored and jkschneider committed Oct 24, 2018
1 parent 1518dc1 commit d80e2f6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ module.exports = angular
stage.action = 'deployService';
stage.tags = stage.tags || [];

$scope.regions = $scope.regions || [];

$scope.state = {
accounts: false,
regionsLoaded: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ module.exports = angular
.controller('CloudfoundryDestroyServiceStageCtrl', function($scope) {
let stage = $scope.stage;
stage.action = 'destroyService';

$scope.regions = $scope.regions || [];

$scope.state = {
accounts: false,
regionsLoaded: false,
Expand Down

0 comments on commit d80e2f6

Please sign in to comment.