We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f44dfeb commit 200b361Copy full SHA for 200b361
src/core/plugins/oas3/components/request-body-editor.jsx
@@ -48,6 +48,13 @@ export default class RequestBodyEditor extends PureComponent {
48
}
49
50
51
+ componentDidUpdate(prevProps) {
52
+ if(this.props.requestBody !== prevProps.requestBody) {
53
+ // force recalc of value if the request body definition has changed
54
+ this.setValueToSample(this.props.mediaType)
55
+ }
56
57
+
58
setValueToSample = (explicitMediaType) => {
59
this.onChange(this.sample(explicitMediaType))
60
0 commit comments