Commit cfa9aa0e authored by mgabdev's avatar mgabdev

Updated checks for Follows tab in Notifications

• Updated:
- checks for Follows tab in Notifications
parent e37876aa
......@@ -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) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment