aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrenden Bice <brenden.next@gmail.com>2019-04-12 23:12:22 -0400
committerBrenden Bice <brenden.next@gmail.com>2019-04-12 23:12:22 -0400
commit41845389a9e5a9e905087057a721bb68ec5c732a (patch)
tree10ba38f573200814404a13085016f33f02c01fa2 /src
parent2ae05075758fef79c0a184faf398ddce1617e182 (diff)
display no message on empty data fetched from api
Diffstat (limited to 'src')
-rw-r--r--src/modules/users.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/modules/users.js b/src/modules/users.js
index 934bfd0b..6de50b80 100644
--- a/src/modules/users.js
+++ b/src/modules/users.js
@@ -81,8 +81,7 @@ export const mutations = {
user.friends.push(friend)
}
})
-
- user.lastFriendId = friends.length ? last(friends).id : last(user.friends).id
+ user.lastFriendId = last(user.friends).id
},
addFollowers (state, { id, followers }) {
const user = state.usersObject[id]
@@ -91,7 +90,7 @@ export const mutations = {
user.followers.push(follower)
}
})
- user.lastFollowerId = last(followers).id
+ user.lastFollowerId = last(user.followers).id
},
// Because frontend doesn't have a reason to keep these stuff in memory
// outside of viewing someones user profile.