Fixes #3511 - Update changeParameter calls to accept in value to identify parameters based on name plus in value

This commit is contained in:
Owen Conti
2017-08-02 22:07:48 -06:00
parent cd422fe8a7
commit fdb0d13089
7 changed files with 18 additions and 14 deletions

View File

@@ -39,9 +39,10 @@ export default {
},
[UPDATE_PARAM]: ( state, {payload} ) => {
let { path, paramName, value, isXml } = payload
let { path, paramName, paramIn, value, isXml } = payload
return state.updateIn( [ "resolved", "paths", ...path, "parameters" ], fromJS([]), parameters => {
const index = parameters.findIndex(p => p.get( "name" ) === paramName )
const index = parameters.findIndex(p => p.get( "name" ) === paramName && p.get("in") === paramIn )
if (!(value instanceof win.File)) {
value = fromJSOrdered( value )
}