From: Eugen Rochko Date: Mon, 12 Mar 2018 02:20:56 +0000 (+0100) Subject: Fix follow relationships not loading after notifications fetch (#6746) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=4f7f6b3922436e7fad352e5835f2ecdc44568d7b;p=mastodon.git Fix follow relationships not loading after notifications fetch (#6746) --- diff --git a/app/javascript/mastodon/actions/notifications.js b/app/javascript/mastodon/actions/notifications.js index 502690045..cf9242d0f 100644 --- a/app/javascript/mastodon/actions/notifications.js +++ b/app/javascript/mastodon/actions/notifications.js @@ -24,7 +24,7 @@ defineMessages({ const fetchRelatedRelationships = (dispatch, notifications) => { const accountIds = notifications.filter(item => item.type === 'follow').map(item => item.account.id); - if (accountIds > 0) { + if (accountIds.length > 0) { dispatch(fetchRelationships(accountIds)); } };