From 95c43bf6d59d272883b73ff23b1dacb4bd4c25b8 Mon Sep 17 00:00:00 2001 From: Jon Ursenbach Date: Fri, 13 Mar 2020 14:52:46 -0700 Subject: [PATCH] fix: passing the onError callback into the Doc component (#525) --- packages/api-explorer/src/index.jsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/api-explorer/src/index.jsx b/packages/api-explorer/src/index.jsx index 4bff9dcf0..3b041ba76 100644 --- a/packages/api-explorer/src/index.jsx +++ b/packages/api-explorer/src/index.jsx @@ -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. @@ -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}