]> cat aescling's git repositories - mastodon.git/commit
Add missing null handling in notification reducer (#6930)
authorunarist <m.unarist@gmail.com>
Tue, 27 Mar 2018 11:05:59 +0000 (20:05 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Tue, 27 Mar 2018 11:05:59 +0000 (13:05 +0200)
commit2f3ac14a434c773577771b74292aa313d57db3c9
tree824b74b1df45dc5a5c7413a0a2f82879e6d6f877
parentca42f9b0ebfa1f4e8e86745a79af138b5865daee
Add missing null handling in notification reducer (#6930)

This patch adds null item (i.e. gap) handling on below functions to avoid TypeError.

* `filterNotifications` called on user mute/block
* `deleteByStatus` called on status deletion
app/javascript/mastodon/reducers/notifications.js