fixing notifications crash again

This commit is contained in:
Julian Lam
2015-12-22 13:53:55 -05:00
parent 4c7647adeb
commit a38d79e6ec

View File

@@ -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);
});
});