fix: make sure the app is fully ready before trying to redirect to the login page
This commit is contained in:
@ -136,10 +136,9 @@ export const store = createStore({
|
||||
|
||||
commit(CURRENT_LIST, currentList)
|
||||
},
|
||||
async loadApp({commit, dispatch}) {
|
||||
async loadApp({dispatch}) {
|
||||
await checkAndSetApiUrl(window.API_URL)
|
||||
await dispatch('auth/checkAuth')
|
||||
commit('vikunjaReady', true)
|
||||
},
|
||||
},
|
||||
})
|
||||
|
Reference in New Issue
Block a user