Fix #2918; add control/test tests

This commit is contained in:
Kyle Shockey
2017-04-18 11:20:15 -07:00
parent db8bd52f16
commit 35769f9b47
2 changed files with 77 additions and 1 deletions

View File

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