mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-06 11:45:48 +02:00
fixed null error with notif grouping
This commit is contained in:
@@ -344,6 +344,10 @@ var async = require('async'),
|
||||
|
||||
notifications = mergeIds.reduce(function(notifications, mergeId) {
|
||||
isolated = notifications.filter(function(notifObj) {
|
||||
if (!notifObj.hasOwnProperty('mergeId')) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return notifObj.mergeId.split('|')[0] === mergeId;
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user