@@ -5,6 +5,7 @@ import {Button} from 'sentry/components/core/button';
5
5
import { LinkButton } from 'sentry/components/core/button/linkButton' ;
6
6
import { Flex } from 'sentry/components/core/layout' ;
7
7
import { DateTime } from 'sentry/components/dateTime' ;
8
+ import ErrorBoundary from 'sentry/components/errorBoundary' ;
8
9
import { KeyValueTable , KeyValueTableRow } from 'sentry/components/keyValueTable' ;
9
10
import LoadingError from 'sentry/components/loadingError' ;
10
11
import LoadingIndicator from 'sentry/components/loadingIndicator' ;
@@ -69,10 +70,14 @@ export default function AutomationDetail() {
69
70
< DetailLayout >
70
71
< DetailLayout . Main >
71
72
< Section title = { t ( 'History' ) } >
72
- < AutomationHistoryList history = { [ ] } />
73
+ < ErrorBoundary mini >
74
+ < AutomationHistoryList history = { [ ] } />
75
+ </ ErrorBoundary >
73
76
</ Section >
74
77
< Section title = { t ( 'Connected Monitors' ) } >
75
- < ConnectedMonitorsList monitors = { detectors } />
78
+ < ErrorBoundary mini >
79
+ < ConnectedMonitorsList monitors = { detectors } />
80
+ </ ErrorBoundary >
76
81
</ Section >
77
82
</ DetailLayout . Main >
78
83
< DetailLayout . Sidebar >
@@ -97,26 +102,30 @@ export default function AutomationDetail() {
97
102
} ) }
98
103
</ Section >
99
104
< Section title = { t ( 'Conditions' ) } >
100
- < ConditionsPanel
101
- triggers = { automation . triggers }
102
- actionFilters = { automation . actionFilters }
103
- />
105
+ < ErrorBoundary mini >
106
+ < ConditionsPanel
107
+ triggers = { automation . triggers }
108
+ actionFilters = { automation . actionFilters }
109
+ />
110
+ </ ErrorBoundary >
104
111
</ Section >
105
112
< Section title = { t ( 'Details' ) } >
106
- < KeyValueTable >
107
- < KeyValueTableRow
108
- keyName = { t ( 'Date created' ) }
109
- value = { < DateTime date = { automation . dateCreated } dateOnly year /> }
110
- />
111
- < KeyValueTableRow
112
- keyName = { t ( 'Created by' ) }
113
- value = { createdByUser ?. name || createdByUser ?. email || t ( 'Unknown' ) }
114
- />
115
- < KeyValueTableRow
116
- keyName = { t ( 'Last modified' ) }
117
- value = { < TimeSince date = { automation . dateUpdated } /> }
118
- />
119
- </ KeyValueTable >
113
+ < ErrorBoundary mini >
114
+ < KeyValueTable >
115
+ < KeyValueTableRow
116
+ keyName = { t ( 'Date created' ) }
117
+ value = { < DateTime date = { automation . dateCreated } dateOnly year /> }
118
+ />
119
+ < KeyValueTableRow
120
+ keyName = { t ( 'Created by' ) }
121
+ value = { createdByUser ?. name || createdByUser ?. email || t ( 'Unknown' ) }
122
+ />
123
+ < KeyValueTableRow
124
+ keyName = { t ( 'Last modified' ) }
125
+ value = { < TimeSince date = { automation . dateUpdated } /> }
126
+ />
127
+ </ KeyValueTable >
128
+ </ ErrorBoundary >
120
129
</ Section >
121
130
</ DetailLayout . Sidebar >
122
131
</ DetailLayout >
0 commit comments