mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Add back the fetchCurrentUser
There was another reason: The user menu in the top right listens on `auth/user` which does not get updated otherwise. We should overthink having two separate result types in the backend: * currentUser: [LoggedInUser] * User: [User] Why not return `User` in both cases?
This commit is contained in:
parent
2c606ec304
commit
fba1072964
@ -135,6 +135,9 @@ export default {
|
||||
update: (store, { data: { UpdateUser } }) => {
|
||||
const { name, locationName, about } = UpdateUser
|
||||
this.form = { name, locationName, about }
|
||||
// update the user menu, too
|
||||
// which listens on auth/user
|
||||
this.$store.dispatch('auth/fetchCurrentUser')
|
||||
}
|
||||
})
|
||||
.then(data => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user