Skip to content

Commit bbe5071

Browse files
authored
feat(stat-detectors): Add ErrorBoundaries to widgets (#56329)
In case a widget can't render properly, we should at least be able to render the other ones. Surround the more risky widgets with ErrorBoundaries to ensure page load
1 parent 0958488 commit bbe5071

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

static/app/views/issueDetails/groupEventDetails/groupEventDetailsContent.tsx

+10-3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import styled from '@emotion/styled';
33

44
import Feature from 'sentry/components/acl/feature';
55
import {CommitRow} from 'sentry/components/commitRow';
6+
import ErrorBoundary from 'sentry/components/errorBoundary';
67
import {EventContexts} from 'sentry/components/events/contexts';
78
import {EventDevice} from 'sentry/components/events/device';
89
import {EventAttachments} from 'sentry/components/events/eventAttachments';
@@ -106,9 +107,15 @@ function GroupEventDetailsContent({
106107
>
107108
<Fragment>
108109
<RegressionMessage event={event} />
109-
<EventBreakpointChart event={event} />
110-
<EventSpanOpBreakdown event={event} />
111-
<EventComparison event={event} group={group} project={project} />
110+
<ErrorBoundary mini>
111+
<EventBreakpointChart event={event} />
112+
</ErrorBoundary>
113+
<ErrorBoundary mini>
114+
<EventSpanOpBreakdown event={event} />
115+
</ErrorBoundary>
116+
<ErrorBoundary mini>
117+
<EventComparison event={event} group={group} project={project} />
118+
</ErrorBoundary>
112119
</Fragment>
113120
</Feature>
114121
);

0 commit comments

Comments
 (0)