1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-10-18 20:09:08 +02:00

Should update archive store correctly when reviving.

This closes #54
This commit is contained in:
Ivar 2017-01-24 11:41:01 +01:00
parent 5bcb00e101
commit 617d374c06

View File

@ -8,7 +8,7 @@ function getInitState () {
const archiveStore = (state = getInitState(), action) => {
switch (action.type) {
case REVIVE_TOGGLE:
return state.update('list', (list) => list.remove(list.indexOf(action.value)));
return state.update('list', (list) => list.filter(item => item.name !== action.value));
case RECEIVE_ARCHIVE:
return state.set('list', new List(action.value));
default: