mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-20 00:08:02 +01:00
parent
5bcb00e101
commit
617d374c06
@ -8,7 +8,7 @@ function getInitState () {
|
|||||||
const archiveStore = (state = getInitState(), action) => {
|
const archiveStore = (state = getInitState(), action) => {
|
||||||
switch (action.type) {
|
switch (action.type) {
|
||||||
case REVIVE_TOGGLE:
|
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:
|
case RECEIVE_ARCHIVE:
|
||||||
return state.set('list', new List(action.value));
|
return state.set('list', new List(action.value));
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user