Skip to content

Commit

Permalink
fix(core/account): Return empty array if no preferred zones are found…
Browse files Browse the repository at this point in the history
… in a region
  • Loading branch information
christopherthielen committed Jan 5, 2019
1 parent e052526 commit 616e46e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/scripts/modules/core/src/account/AccountService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export class AccountService {
region: string,
): IPromise<string[]> {
return this.getPreferredZonesByAccount(provider).then(
(result: IAccountZone) => (result[account] ? result[account][region] : []),
(result: IAccountZone) => (result[account] && result[account][region]) || [],
);
}

Expand Down

0 comments on commit 616e46e

Please sign in to comment.