|
|
@ -155,8 +155,10 @@ export const items = handleActions(
|
|
|
|
},
|
|
|
|
},
|
|
|
|
[actions.setCacheCollection.toString()]: (state: CacheItemsData, action: ActionMeta<CacheCollection, { colUid: string }>) => {
|
|
|
|
[actions.setCacheCollection.toString()]: (state: CacheItemsData, action: ActionMeta<CacheCollection, { colUid: string }>) => {
|
|
|
|
if (action.payload !== undefined) {
|
|
|
|
if (action.payload !== undefined) {
|
|
|
|
|
|
|
|
if (!state.has(action.meta.colUid)) {
|
|
|
|
return state.set(action.meta.colUid, ImmutableMap());
|
|
|
|
return state.set(action.meta.colUid, ImmutableMap());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
return state;
|
|
|
|
return state;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
[actions.unsetCacheCollection.toString()]: (state: CacheItemsData, action: ActionMeta<string, { colUid: string }>) => {
|
|
|
|
[actions.unsetCacheCollection.toString()]: (state: CacheItemsData, action: ActionMeta<string, { colUid: string }>) => {
|
|
|
|