fix console error

This commit is contained in:
Henry Jameson 2019-03-14 18:50:51 +02:00
parent 644eba87fe
commit 885a3a77df

View file

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