diff options
| author | Henry Jameson <me@hjkos.com> | 2019-03-14 18:50:51 +0200 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2019-03-14 18:50:51 +0200 |
| commit | 885a3a77df84c21026b7d13ff368c3bebcf70561 (patch) | |
| tree | e6f00063917ba9e93db21fd947c77010846ef621 /src/modules/users.js | |
| parent | 644eba87fe1d290bfce298a0b744375608a688f3 (diff) | |
fix console error
Diffstat (limited to 'src/modules/users.js')
| -rw-r--r-- | src/modules/users.js | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/modules/users.js b/src/modules/users.js index 27114684..2d23955b 100644 --- a/src/modules/users.js +++ b/src/modules/users.js @@ -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) { |
