Fixes for IE11, wrt to instance methods

This commit is contained in:
Josh Ponelat
2017-06-19 18:29:45 +02:00
parent 4a6716ffed
commit 0e4d04650d
3 changed files with 3 additions and 7 deletions

View File

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