TESTING - Notification logs - 3

TESTING - Notification logs - 3
This commit is contained in:
mgabdev 2020-05-22 02:48:48 -04:00
parent 087ad23bff
commit e1e6e07ea8

View File

@ -69,6 +69,7 @@ const makeSortedNotifications = (state) => {
let indexesForStatusesForFavorites = {}
chunk.forEach((notification) => {
if (!!notification) {
const statusId = notification.get('status')
const type = notification.get('type')
@ -156,9 +157,10 @@ const makeSortedNotifications = (state) => {
}
}
}
}
})
finalSortedItems = finalSortedItems.concat(sortedItems)
if (sortedItems.size > 0) finalSortedItems = finalSortedItems.concat(sortedItems)
})
return state.set('sortedItems', finalSortedItems)