Fix follow relationships not loading after notifications fetch (#6746)

This commit is contained in:
Eugen Rochko 2018-03-12 03:20:56 +01:00 committed by GitHub
parent 8d6d74b319
commit f2e5501822

View file

@ -24,7 +24,7 @@ defineMessages({
const fetchRelatedRelationships = (dispatch, notifications) => { const fetchRelatedRelationships = (dispatch, notifications) => {
const accountIds = notifications.filter(item => item.type === 'follow').map(item => item.account.id); const accountIds = notifications.filter(item => item.type === 'follow').map(item => item.account.id);
if (accountIds > 0) { if (accountIds.length > 0) {
dispatch(fetchRelationships(accountIds)); dispatch(fetchRelationships(accountIds));
} }
}; };