File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ export default class ContentType extends React.Component {
3737
3838 return (
3939 < div className = { "content-type-wrapper " + ( className || "" ) } >
40- < select className = "content-type" value = { value } onChange = { this . onChangeWrapper } >
40+ < select className = "content-type" value = { value || "" } onChange = { this . onChangeWrapper } >
4141 { contentTypes . map ( ( val ) => {
4242 return < option key = { val } value = { val } > { val } </ option >
4343 } ) . toArray ( ) }
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ RequestBody.propTypes = {
5050 getComponent : PropTypes . func . isRequired ,
5151 getConfigs : PropTypes . func . isRequired ,
5252 specSelectors : PropTypes . object . isRequired ,
53- contentType : PropTypes . string . isRequired ,
53+ contentType : PropTypes . string ,
5454 isExecute : PropTypes . bool . isRequired ,
5555 onChange : PropTypes . func . isRequired
5656}
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ class Parameters extends Component {
2222 specActions : PropTypes . object . isRequired ,
2323 operation : PropTypes . object . isRequired ,
2424 getComponent : PropTypes . func . isRequired ,
25+ getConfigs : PropTypes . func . isRequired ,
2526 specSelectors : PropTypes . object . isRequired ,
2627 oas3Actions : PropTypes . object . isRequired ,
2728 oas3Selectors : PropTypes . object . isRequired ,
@@ -86,6 +87,7 @@ class Parameters extends Component {
8687
8788 fn,
8889 getComponent,
90+ getConfigs,
8991 specSelectors,
9092 oas3Actions,
9193 oas3Selectors,
@@ -137,6 +139,7 @@ class Parameters extends Component {
137139 eachMap ( parameters , ( parameter ) => (
138140 < ParameterRow fn = { fn }
139141 getComponent = { getComponent }
142+ getConfigs = { getConfigs }
140143 param = { parameter }
141144 key = { parameter . get ( "name" ) }
142145 onChange = { this . onChange }
You can’t perform that action at this time.
0 commit comments