forked from AkkomaGang/akkoma-fe
fix console error
This commit is contained in:
parent
644eba87fe
commit
885a3a77df
1 changed files with 6 additions and 5 deletions
|
@ -94,11 +94,12 @@ export const mutations = {
|
||||||
updateUserRelationship (state, relationships) {
|
updateUserRelationship (state, relationships) {
|
||||||
relationships.forEach((relationship) => {
|
relationships.forEach((relationship) => {
|
||||||
const user = state.usersObject[relationship.id]
|
const user = state.usersObject[relationship.id]
|
||||||
|
if (user) {
|
||||||
user.follows_you = relationship.followed_by
|
user.follows_you = relationship.followed_by
|
||||||
user.following = relationship.following
|
user.following = relationship.following
|
||||||
user.muted = relationship.muting
|
user.muted = relationship.muting
|
||||||
user.statusnet_blocking = relationship.blocking
|
user.statusnet_blocking = relationship.blocking
|
||||||
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
saveBlocks (state, blockIds) {
|
saveBlocks (state, blockIds) {
|
||||||
|
|
Loading…
Reference in a new issue