fixing notifications crash again

v1.18.x
Julian Lam 9 years ago
parent 4c7647adeb
commit a38d79e6ec

@ -396,8 +396,10 @@ var async = require('async'),
// Filter out duplicates
notifications = notifications.filter(function(notifObj, idx) {
if (notifObj.mergeId === (mergeId + '|' + differentiator) && idx !== modifyIndex) {
if (!notifObj.mergeId) {
return true;
}
return !(notifObj.mergeId === (mergeId + '|' + differentiator) && idx !== modifyIndex);
});
});

Loading…
Cancel
Save