ensure primary cluster information displays on initial page load (#9329)

This commit is contained in:
Noelle Daley 2020-06-26 14:05:19 -07:00 committed by GitHub
parent 16070564cb
commit ae821b2600
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -56,6 +56,6 @@ export default Component.extend({
return this.replicationDetails.knownPrimaryClusterAddrs;
}),
primaryUiUrl: computed('replicationDetails.{primaries,knownPrimaryClusterAddrs}', function() {
return this.replicationDetails.primaries && this.replicationDetails.primaries[0].api_address;
return this.replicationDetails.primaries.length && this.replicationDetails.primaries[0].api_address;
}),
});