diff --git a/app/javascript/gabsocial/reducers/notifications.js b/app/javascript/gabsocial/reducers/notifications.js index 45939263..930fc4dd 100644 --- a/app/javascript/gabsocial/reducers/notifications.js +++ b/app/javascript/gabsocial/reducers/notifications.js @@ -183,7 +183,8 @@ const expandNormalizedNotifications = (state, notifications, next) => { let items = ImmutableList() notifications.forEach((n, i) => { - items = items.set(i, notificationToMap(n)) + const noti = notificationToMap(n) + if (!!noti) items = items.set(items.size, noti) }) state = state.withMutations((mutable) => {