mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-03-03 19:43:04 +08:00
fix(notifs): _.reject does not support dict, Sentry 26699
This commit is contained in:
parent
e311f0cb61
commit
792c0e61f1
1 changed files with 3 additions and 1 deletions
|
@ -47,7 +47,9 @@ class NotificationStore extends NylasStore
|
|||
@listenTo Actions.postNotification, (data) =>
|
||||
@_postNotification(new Notification(data))
|
||||
@listenTo Actions.dismissNotificationsMatching, (criteria) =>
|
||||
@_notifications = _.reject @_notifications, (n) -> _.isMatch(n, criteria)
|
||||
for tag, notif of @_notifications
|
||||
if _.isMatch(notif, criteria)
|
||||
delete @_notifications[tag]
|
||||
@trigger()
|
||||
|
||||
######### PUBLIC #######################################################
|
||||
|
|
Loading…
Reference in a new issue