Updated checks for Follows tab in Notifications

• Updated:
- checks for Follows tab in Notifications
This commit is contained in:
mgabdev 2020-06-12 22:01:13 -04:00
parent e37876aa86
commit cfa9aa0e74

View File

@ -121,9 +121,14 @@ class Notifications extends ImmutablePureComponent {
} else if ((sortedNotifications.size > 0 || hasMore) && selectedFilter === 'follow') {
const followNotifications = []
sortedNotifications.forEach((block) => {
block.get('follow').forEach((item) => {
followNotifications.push(item)
})
if (block) {
const followBlock = block.get('follow')
if (followBlock && followBlock.size > 0) {
followBlock.forEach((item) => {
followNotifications.push(item)
})
}
}
})
scrollableContent = followNotifications.map((item, index) => {