diff --git a/src/state/reducers/manifests.js b/src/state/reducers/manifests.js index c3f52fdd6a57b5f98cb58884a12b6e39ea710df0..c8110e573438cf4f411cc059fdb1429050e36a5b 100644 --- a/src/state/reducers/manifests.js +++ b/src/state/reducers/manifests.js @@ -1,4 +1,5 @@ import manifesto from 'manifesto.js'; +import omit from 'lodash/omit'; import ActionTypes from '../actions/action-types'; /** @@ -8,12 +9,12 @@ export const manifestsReducer = (state = {}, action) => { switch (action.type) { case ActionTypes.REQUEST_MANIFEST: return { - ...state, [action.manifestId]: { ...state[action.manifestId], ...action.properties, id: action.manifestId, }, + ...omit(state, action.manifestId), }; case ActionTypes.RECEIVE_MANIFEST: return {