Skip to content

Commit

Permalink
Fix:Load local settings before attempting server connection #976
Browse files Browse the repository at this point in the history
  • Loading branch information
advplyr committed Dec 8, 2023
1 parent fdd251e commit 8b22243
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,8 @@ export default {
if (this.$store.state.isFirstLoad) {
this.$store.commit('setIsFirstLoad', false)
this.loadSavedSettings()
const deviceData = await this.$db.getDeviceData()
this.$store.commit('setDeviceData', deviceData)
Expand All @@ -336,7 +338,6 @@ export default {
console.log(`[default] finished connection attempt or already connected ${!!this.user}`)
await this.syncLocalSessions()
this.loadSavedSettings()
this.hasMounted = true
console.log('[default] fully initialized')
Expand Down

0 comments on commit 8b22243

Please sign in to comment.