forked from AkkomaGang/akkoma-fe
stop fetching user relationship when user is unauthorized
This commit is contained in:
parent
ed0f10e9ee
commit
992c8e1f77
1 changed files with 4 additions and 2 deletions
|
@ -224,8 +224,10 @@ const users = {
|
|||
})
|
||||
},
|
||||
fetchUserRelationship (store, id) {
|
||||
return store.rootState.api.backendInteractor.fetchUserRelationship({ id })
|
||||
.then((relationships) => store.commit('updateUserRelationship', relationships))
|
||||
if (store.state.currentUser) {
|
||||
store.rootState.api.backendInteractor.fetchUserRelationship({ id })
|
||||
.then((relationships) => store.commit('updateUserRelationship', relationships))
|
||||
}
|
||||
},
|
||||
fetchBlocks (store) {
|
||||
return store.rootState.api.backendInteractor.fetchBlocks()
|
||||
|
|
Loading…
Reference in a new issue