Skip to content
Snippets Groups Projects
Commit 1d5cbfa3 authored by Eugen Rochko's avatar Eugen Rochko
Browse files

Fix #449 - don't do relationships fetch for empty array of IDs

parent cc1eccc8
No related branches found
No related tags found
No related merge requests found
......@@ -486,6 +486,10 @@ export function expandFollowingFail(id, error) {
export function fetchRelationships(account_ids) {
return (dispatch, getState) => {
if (account_ids.length === 0) {
return;
}
dispatch(fetchRelationshipsRequest(account_ids));
api(getState).get(`/api/v1/accounts/relationships?${account_ids.map(id => `id[]=${id}`).join('&')}`).then(response => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment