Don't blow up if there's no principal

This commit is contained in:
Vincent Fiduccia 2019-11-06 10:14:13 -07:00
parent 2e3eddaec5
commit aad57ca77d
No known key found for this signature in database
GPG Key ID: 2B29AD6BB2BB2582
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ export default {
computed: {
principal() {
return this.$store.getters['rancher/byId'](RANCHER.PRINCIPAL, this.$store.getters['auth/principalId']);
return this.$store.getters['rancher/byId'](RANCHER.PRINCIPAL, this.$store.getters['auth/principalId']) || {};
},
counts() {