refactor: Remove redundant accounts/get (#8056)

Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com>
This commit is contained in:
Shivam Mishra
2023-10-05 13:54:04 +05:30
committed by GitHub
parent 72ba429159
commit e5c198f839
3 changed files with 1 additions and 7 deletions

View File

@@ -220,14 +220,11 @@ export default {
},
},
mounted() {
if (!this.id) {
this.initializeAccount();
}
this.initializeAccount();
},
methods: {
async initializeAccount() {
try {
await this.$store.dispatch('accounts/get');
const {
name,
locale,

View File

@@ -72,8 +72,6 @@ export default {
},
methods: {
async fetchAccountDetails() {
await this.$store.dispatch('accounts/get');
if (!this.hasABillingPlan) {
this.$store.dispatch('accounts/subscription');
}

View File

@@ -70,7 +70,6 @@ export default {
},
methods: {
async initializeEnabledFeatures() {
await this.$store.dispatch('accounts/get', this.accountId);
this.enabledFeatures = this.account.features;
},
initChannelAuth(channel) {