1
0
Fork 0
mirror of synced 2024-07-15 03:05:57 +12:00

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 fe05c609ea

View file

@ -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 => {