diff --git a/src/core/components/try-it-out-button.jsx b/src/core/components/try-it-out-button.jsx index e2b66294..d52e8e75 100644 --- a/src/core/components/try-it-out-button.jsx +++ b/src/core/components/try-it-out-button.jsx @@ -21,8 +21,8 @@ export default class TryItOutButton extends React.Component { return (
{ - enabled ? - : + enabled ? + : }
) diff --git a/src/core/containers/OperationContainer.jsx b/src/core/containers/OperationContainer.jsx index 06ab130b..a2ae9cce 100644 --- a/src/core/containers/OperationContainer.jsx +++ b/src/core/containers/OperationContainer.jsx @@ -113,11 +113,11 @@ export default class OperationContainer extends PureComponent { layoutActions.show(["operations", tag, operationId], !isShown) } - onTryoutClick =() => { + onCancelClick=() => { this.setState({tryItOutEnabled: !this.state.tryItOutEnabled}) } - onCancelClick =() => { + onTryoutClick =() => { let { specActions, path, method } = this.props this.setState({tryItOutEnabled: !this.state.tryItOutEnabled}) specActions.clearValidateParams([path, method])