linter fixes

This commit is contained in:
Kyle Shockey
2018-06-21 20:05:31 -07:00
parent 21ef91ab88
commit f491d4fc38
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ export default class ParamBody extends PureComponent {
}
updateValues = (props) => {
let { specSelectors, pathMethod, param, isExecute, consumesValue="" } = props
let { param, isExecute, consumesValue="" } = props
let isXml = /xml/i.test(consumesValue)
let isJson = /json/i.test(consumesValue)
let paramValue = isXml ? param.get("value_xml") : param.get("value")
+1 -1
View File
@@ -86,7 +86,7 @@ export default class ParameterRow extends Component {
}
render() {
let {param, onChange, getComponent, getConfigs, isExecute, fn, onChangeConsumes, specSelectors, pathMethod, specPath} = this.props
let {param, getComponent, getConfigs, isExecute, fn, onChangeConsumes, specSelectors, pathMethod, specPath} = this.props
let { isOAS3 } = specSelectors
+1 -1
View File
@@ -53,7 +53,7 @@ export default {
[UPDATE_PARAM]: ( state, {payload} ) => {
let { path: pathMethod, paramName, paramIn, param, value, isXml } = payload
let paramKey;
let paramKey
// `hashCode` is an Immutable.js Map method
if(param && param.hashCode && !paramIn && !paramName) {
+1 -1
View File
@@ -23,7 +23,7 @@ describe("bug #4557: default parameter values", function(){
},
fn: {},
operation: {get: ()=>{}},
onChange: createSpy(...args => console.log(args)).andCallThrough(),
onChange: createSpy(),
param: paramValue,
rawParam: paramValue,
onChangeConsumes: () => {},