mirror of
https://github.com/kikobar/mastodon.git
synced 2024-11-18 13:17:35 +00:00
Fix TypeError on follow notification (#6950)
`notification.status` may not be present, e.g. follow notification.
This commit is contained in:
parent
9ed5eebd7c
commit
41452e8302
|
@ -43,7 +43,9 @@ export function updateNotifications(notification, intlMessages, intlLocale) {
|
|||
const playSound = getState().getIn(['settings', 'notifications', 'sounds', notification.type], true);
|
||||
|
||||
dispatch(importFetchedAccount(notification.account));
|
||||
if (notification.status) {
|
||||
dispatch(importFetchedStatus(notification.status));
|
||||
}
|
||||
|
||||
dispatch({
|
||||
type: NOTIFICATIONS_UPDATE,
|
||||
|
|
Loading…
Reference in a new issue