forked from AkkomaGang/akkoma-fe
remove error message on no more following
This commit is contained in:
parent
fa33e3ec58
commit
2ae0507575
1 changed files with 2 additions and 1 deletions
|
@ -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 a new issue