Skip to content

Commit 76617a5

Browse files
authored
Merge pull request #3875 from thompsongl/bug/misc-proptype-fixes
Bug/misc proptype fixes
2 parents 4fa4e0f + 1d6b8e3 commit 76617a5

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

src/core/components/content-type.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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()}

src/core/plugins/oas3/components/request-body.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

src/core/plugins/oas3/wrap-components/parameters.jsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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 }

0 commit comments

Comments
 (0)