From ec17682d7a908b66757de1b5f51645f136c8160d Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Tue, 8 Oct 2024 11:53:55 +0530 Subject: [PATCH] chore: move to created --- app/javascript/dashboard/App.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/javascript/dashboard/App.vue b/app/javascript/dashboard/App.vue index e2ed81dbd..5d693c6c3 100644 --- a/app/javascript/dashboard/App.vue +++ b/app/javascript/dashboard/App.vue @@ -70,7 +70,7 @@ export default { } }, currentAccountId() { - console.log('THIS CALL'); + console.log('THIS CALL', this.currentAccountId); if (this.currentAccountId) { this.initializeAccount(); } else { @@ -78,10 +78,12 @@ export default { } }, }, + created() { + this.setLocale(window.chatwootConfig.selectedLocale); + }, mounted() { this.initializeColorTheme(); this.listenToThemeChanges(); - this.setLocale(window.chatwootConfig.selectedLocale); }, unmounted() { if (this.reconnectService) {