Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Commit

Permalink
fix: passing the onError callback into the Doc component (#525)
Browse files Browse the repository at this point in the history
  • Loading branch information
erunion authored Mar 13, 2020
1 parent 6fc40b7 commit 95c43bf
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/api-explorer/src/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,6 @@ class ApiExplorer extends React.Component {
}

render() {
const { maskErrorMessages } = this.props;

const docs = this.props.docs.filter(doc => {
// If the HTTP method is something we don't support, then we shouldn't attempt to render it as a normal API
// operation.
Expand Down Expand Up @@ -208,12 +206,13 @@ class ApiExplorer extends React.Component {
language={this.state.language}
lazy={this.isLazy(index)}
Logs={this.props.Logs}
maskErrorMessages={maskErrorMessages}
maskErrorMessages={this.props.maskErrorMessages}
oas={this.getOas(doc)}
oauth={this.props.oauth}
onAuthChange={this.onAuthChange}
onAuthGroupChange={this.onAuthGroupChange}
onDocRender={this.onDocRender}
onError={this.props.onError}
rendered={this.state.docRenderMap[doc.slug]}
setLanguage={this.setLanguage}
suggestedEdits={this.props.suggestedEdits}
Expand Down

0 comments on commit 95c43bf

Please sign in to comment.