fix console error

This commit is contained in:
Henry Jameson 2019-03-14 18:50:51 +02:00
parent 644eba87fe
commit 885a3a77df
1 changed files with 6 additions and 5 deletions

View File

@ -94,11 +94,12 @@ export const mutations = {
updateUserRelationship (state, relationships) {
relationships.forEach((relationship) => {
const user = state.usersObject[relationship.id]
user.follows_you = relationship.followed_by
user.following = relationship.following
user.muted = relationship.muting
user.statusnet_blocking = relationship.blocking
if (user) {
user.follows_you = relationship.followed_by
user.following = relationship.following
user.muted = relationship.muting
user.statusnet_blocking = relationship.blocking
}
})
},
saveBlocks (state, blockIds) {