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() { mounted() {
if (!this.id) { this.initializeAccount();
this.initializeAccount();
}
}, },
methods: { methods: {
async initializeAccount() { async initializeAccount() {
try { try {
await this.$store.dispatch('accounts/get');
const { const {
name, name,
locale, locale,

View File

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

View File

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