fix
This commit is contained in:
parent
23a1000298
commit
0b6f9c62a1
1 changed files with 2 additions and 2 deletions
|
@ -270,8 +270,8 @@ const addNewNotifications = (state, { dispatch, notifications, older }) => {
|
|||
const allStatuses = state.allStatuses
|
||||
const allStatusesObject = state.allStatusesObject
|
||||
each(notifications, (notification) => {
|
||||
const action = notification.notice
|
||||
mergeOrAdd(allStatuses, allStatusesObject, action)
|
||||
const result = mergeOrAdd(allStatuses, allStatusesObject, notification.notice)
|
||||
const action = result.item
|
||||
// Only add a new notification if we don't have one for the same action
|
||||
if (!find(state.notifications.data, (oldNotification) => oldNotification.action.id === action.id)) {
|
||||
state.notifications.maxId = Math.max(notification.id, state.notifications.maxId)
|
||||
|
|
Loading…
Reference in a new issue