remove error message on no more following
This commit is contained in:
parent
fa33e3ec58
commit
2ae0507575
@ -81,7 +81,8 @@ export const mutations = {
|
|||||||
user.friends.push(friend)
|
user.friends.push(friend)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
user.lastFriendId = last(friends).id
|
|
||||||
|
user.lastFriendId = friends.length ? last(friends).id : last(user.friends).id
|
||||||
},
|
},
|
||||||
addFollowers (state, { id, followers }) {
|
addFollowers (state, { id, followers }) {
|
||||||
const user = state.usersObject[id]
|
const user = state.usersObject[id]
|
||||||
|
Loading…
Reference in New Issue
Block a user