Removing notifications

This commit is contained in:
James Barnsley
2017-05-30 08:25:11 +12:00
parent 9a2c411e14
commit 1f4d8a7c72

View File

@ -718,7 +718,7 @@ export default function reducer(ui = {}, action){
var notifications = Object.assign([], ui.notifications)
if( action.index > -1 ){
notifications.splice(index, 1)
notifications.splice(action.index, 1)
}
return Object.assign({}, ui, {notifications: notifications})