File tree 1 file changed +10
-1
lines changed
static/app/views/dashboards/widgetBuilder/components
1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import pick from 'lodash/pick';
7
7
import { Breadcrumbs } from 'sentry/components/breadcrumbs' ;
8
8
import { openConfirmModal } from 'sentry/components/confirm' ;
9
9
import { Button } from 'sentry/components/core/button' ;
10
+ import ErrorBoundary from 'sentry/components/errorBoundary' ;
10
11
import SlideOverPanel from 'sentry/components/slideOverPanel' ;
11
12
import { URL_PARAM } from 'sentry/constants/pageFilters' ;
12
13
import { IconClose } from 'sentry/icons' ;
@@ -307,6 +308,14 @@ function WidgetBuilderSlideout({
307
308
308
309
export default WidgetBuilderSlideout ;
309
310
311
+ function Section ( { children} : { children : React . ReactNode } ) {
312
+ return (
313
+ < SectionWrapper >
314
+ < ErrorBoundary mini > { children } </ ErrorBoundary >
315
+ </ SectionWrapper >
316
+ ) ;
317
+ }
318
+
310
319
const CloseButton = styled ( Button ) `
311
320
color: ${ p => p . theme . subText } ;
312
321
height: fit-content;
@@ -332,6 +341,6 @@ const SlideoutBodyWrapper = styled('div')`
332
341
padding: ${ space ( 4 ) } ;
333
342
` ;
334
343
335
- const Section = styled ( 'div' ) `
344
+ const SectionWrapper = styled ( 'div' ) `
336
345
margin-bottom: 24px;
337
346
` ;
You can’t perform that action at this time.
0 commit comments