Revert "Fix bug where reducer dies on empty operation"

This reverts commit 08b3c38b8a.
This commit is contained in:
Kyle Shockey
2017-04-14 21:00:56 -07:00
parent bedd509a4a
commit 48e0cb10b5

View File

@@ -97,10 +97,7 @@ export default {
},
[UPDATE_OPERATION_VALUE]: (state, { payload: { path, value, key } }) => {
if(state.get(["resolved", "paths", ...path, key])) {
return state.setIn(["resolved", "paths", ...path, key], fromJS(value))
}
return state
return state.setIn(["resolved", "paths", ...path, key], fromJS(value))
},
[CLEAR_RESPONSE]: (state, { payload: { path, method } } ) =>{