Merge pull request #8647 from Budibase/fix/logout-race-condition

Fix logout race condition
This commit is contained in:
Rory Powell 2022-11-11 12:40:22 +00:00 committed by GitHub
commit 9ce79b1a2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -155,9 +155,9 @@ export function createAuthStore() {
await actions.getSelf() await actions.getSelf()
}, },
logout: async () => { logout: async () => {
setUser(null)
setPostLogout()
await API.logOut() await API.logOut()
setPostLogout()
setUser(null)
await setInitInfo({}) await setInitInfo({})
}, },
updateSelf: async fields => { updateSelf: async fields => {