mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 20:16:04 +01:00
fix notification crash
This commit is contained in:
@@ -133,7 +133,7 @@ var async = require('async'),
|
||||
return notification;
|
||||
}).filter(function(notification) {
|
||||
// Remove notifications that do not resolve to a path
|
||||
return notification.path !== null;
|
||||
return notification && notification.path !== null;
|
||||
});
|
||||
|
||||
callback(null, notifications);
|
||||
|
||||
Reference in New Issue
Block a user