Explore: Wrap each panel in separate error boundary (#33868)

This commit is contained in:
Andrej Ocenas 2021-05-10 20:25:30 +02:00 committed by GitHub
parent d1c557e978
commit a40946b6aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -348,11 +348,13 @@ export class Explore extends React.PureComponent<ExploreProps, ExploreState> {
<ErrorBoundaryAlert>
{showPanels && (
<>
{showMetrics && graphResult && this.renderGraphPanel(width)}
{showTable && this.renderTablePanel(width)}
{showLogs && this.renderLogsPanel(width)}
{showNodeGraph && this.renderNodeGraphPanel()}
{showTrace && this.renderTraceViewPanel()}
{showMetrics && graphResult && (
<ErrorBoundaryAlert>{this.renderGraphPanel(width)}</ErrorBoundaryAlert>
)}
{showTable && <ErrorBoundaryAlert>{this.renderTablePanel(width)}</ErrorBoundaryAlert>}
{showLogs && <ErrorBoundaryAlert>{this.renderLogsPanel(width)}</ErrorBoundaryAlert>}
{showNodeGraph && <ErrorBoundaryAlert>{this.renderNodeGraphPanel()}</ErrorBoundaryAlert>}
{showTrace && <ErrorBoundaryAlert>{this.renderTraceViewPanel()}</ErrorBoundaryAlert>}
</>
)}
{showRichHistory && (