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