Merge pull request #8647 from Budibase/fix/logout-race-condition
Fix logout race condition
This commit is contained in:
commit
fe05c609ea
1 changed files with 2 additions and 2 deletions
|
@ -155,9 +155,9 @@ export function createAuthStore() {
|
|||
await actions.getSelf()
|
||||
},
|
||||
logout: async () => {
|
||||
setUser(null)
|
||||
setPostLogout()
|
||||
await API.logOut()
|
||||
setPostLogout()
|
||||
setUser(null)
|
||||
await setInitInfo({})
|
||||
},
|
||||
updateSelf: async fields => {
|
||||
|
|
Loading…
Reference in a new issue