Просмотр исходного кода

Fix TypeError on follow notification (#6950)

`notification.status` may not be present, e.g. follow notification.
master
unarist 6 лет назад
committed by Eugen Rochko
Родитель
Сommit
41452e8302
1 измененных файлов: 3 добавлений и 1 удалений
  1. +3
    -1
      app/javascript/mastodon/actions/notifications.js

+ 3
- 1
app/javascript/mastodon/actions/notifications.js Просмотреть файл

@@ -43,7 +43,9 @@ export function updateNotifications(notification, intlMessages, intlLocale) {
const playSound = getState().getIn(['settings', 'notifications', 'sounds', notification.type], true);

dispatch(importFetchedAccount(notification.account));
dispatch(importFetchedStatus(notification.status));
if (notification.status) {
dispatch(importFetchedStatus(notification.status));
}

dispatch({
type: NOTIFICATIONS_UPDATE,


Загрузка…
Отмена
Сохранить