diff --git a/src/core/plugins/spec/reducers.js b/src/core/plugins/spec/reducers.js index 8f56286f836595bec732139842a1efcffbb83a0d..6bc51d53b9cec6967d7376f841b720abd83d24c6 100644 --- a/src/core/plugins/spec/reducers.js +++ b/src/core/plugins/spec/reducers.js @@ -1,7 +1,6 @@ import { fromJS } from "immutable" import { fromJSOrdered, validateParam } from "core/utils" import win from "../../window" -import findIndex from "lodash/findIndex" import { UPDATE_SPEC, @@ -42,7 +41,7 @@ export default { [UPDATE_PARAM]: ( state, {payload} ) => { let { path, paramName, value, isXml } = payload return state.updateIn( [ "resolved", "paths", ...path, "parameters" ], fromJS([]), parameters => { - const index = findIndex(parameters, p => p.get( "name" ) === paramName ) + const index = parameters.findIndex(p => p.get( "name" ) === paramName ) if (!(value instanceof win.File)) { value = fromJSOrdered( value ) }