diff --git a/src/store/reducers.ts b/src/store/reducers.ts index 2cd9ce5..6aba920 100644 --- a/src/store/reducers.ts +++ b/src/store/reducers.ts @@ -155,7 +155,9 @@ export const items = handleActions( }, [actions.setCacheCollection.toString()]: (state: CacheItemsData, action: ActionMeta) => { if (action.payload !== undefined) { - return state.set(action.meta.colUid, ImmutableMap()); + if (!state.has(action.meta.colUid)) { + return state.set(action.meta.colUid, ImmutableMap()); + } } return state; },