stop fetching user relationship when user is unauthorized

このコミットが含まれているのは:
taehoon 2019-04-17 22:47:56 -04:00
コミット 992c8e1f77
1個のファイルの変更4行の追加2行の削除

ファイルの表示

@ -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()