bug: remove clearValidation from onTryoutClick (#5955)
This commit is contained in:
@@ -22,6 +22,12 @@ export default class Execute extends Component {
|
||||
this.props.onExecute()
|
||||
}
|
||||
specActions.execute( { operation, path, method } )
|
||||
} else {
|
||||
// deferred by 40ms, to give element class change time to settle.
|
||||
specActions.clearValidateParams( [path, method] )
|
||||
setTimeout(() => {
|
||||
specActions.validateParams([path, method])
|
||||
}, 40)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -118,9 +118,7 @@ export default class OperationContainer extends PureComponent {
|
||||
}
|
||||
|
||||
onTryoutClick =() => {
|
||||
let { specActions, path, method } = this.props
|
||||
this.setState({tryItOutEnabled: !this.state.tryItOutEnabled})
|
||||
specActions.clearValidateParams([path, method])
|
||||
}
|
||||
|
||||
onExecute = () => {
|
||||
|
||||
Reference in New Issue
Block a user