mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2026-01-20 20:01:22 +00:00
Simplify assignment to 'Group[0]' after refining things
This commit is contained in:
parent
4e845284fc
commit
13e7b1fb9c
@ -438,7 +438,7 @@ export default {
|
||||
}
|
||||
},
|
||||
updateJoinLeave({ myRoleInGroup }) {
|
||||
this.Group = [{ ...this.Group[0], myRole: myRoleInGroup }] // if we assign it directly "this.group" will not be updated
|
||||
this.Group[0].myRole = myRoleInGroup
|
||||
const currentUserInGroupMembers = this.GroupMembers.find(
|
||||
(user) => user.id === this.currentUser.id,
|
||||
)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user