@@ -144,7 +144,7 @@ class IncidentPage extends React.Component<IncidentPageProps, IncidentPageState>
144
144
< VerticalGroup spacing = "lg" align = "center" >
145
145
< Text . Title level = { 1 } > 404</ Text . Title >
146
146
< Text . Title level = { 4 } > Alert group not found</ Text . Title >
147
- < PluginLink query = { { page : 'alert-groups ' , cursor, start, perpage } } >
147
+ < PluginLink query = { { page : 'incidents ' , cursor, start, perpage } } >
148
148
< Button variant = "secondary" icon = "arrow-left" size = "md" >
149
149
Go to Alert Groups page
150
150
</ Button >
@@ -244,7 +244,7 @@ class IncidentPage extends React.Component<IncidentPageProps, IncidentPageState>
244
244
< VerticalGroup >
245
245
< HorizontalGroup justify = "space-between" >
246
246
< HorizontalGroup className = { cx ( 'title' ) } >
247
- < PluginLink query = { { page : 'alert-groups ' , cursor, start, perpage } } >
247
+ < PluginLink query = { { page : 'incidents ' , cursor, start, perpage } } >
248
248
< IconButton name = "arrow-left" size = "xxl" />
249
249
</ PluginLink >
250
250
{ /* @ts -ignore*/ }
@@ -256,12 +256,12 @@ class IncidentPage extends React.Component<IncidentPageProps, IncidentPageState>
256
256
{ incident . root_alert_group && (
257
257
< Text type = "secondary" >
258
258
Attached to{ ' ' }
259
- < PluginLink query = { { page : 'alert-groups ' , id : incident . root_alert_group . pk } } >
259
+ < PluginLink query = { { page : 'incident ' , id : incident . root_alert_group . pk } } >
260
260
#{ incident . root_alert_group . inside_organization_number } { ' ' }
261
261
{ incident . root_alert_group . render_for_web . title }
262
262
</ PluginLink > { ' ' }
263
263
< WithPermissionControlTooltip userAction = { UserActions . AlertGroupsWrite } >
264
- < Button variant = "secondary" onClick = { ( ) => this . getUnattachClickHandler ( incident . pk ) } size = "sm" >
264
+ < Button variant = "secondary" onClick = { this . getUnattachClickHandler ( incident . pk ) } size = "sm" >
265
265
Unattach
266
266
</ Button >
267
267
</ WithPermissionControlTooltip >
@@ -421,7 +421,9 @@ class IncidentPage extends React.Component<IncidentPageProps, IncidentPageState>
421
421
getUnattachClickHandler = ( pk : Alert [ 'pk' ] ) => {
422
422
const { store } = this . props ;
423
423
424
- return store . alertGroupStore . unattachAlert ( pk ) . then ( this . update ) ;
424
+ return ( ) => {
425
+ store . alertGroupStore . unattachAlert ( pk ) . then ( this . update ) ;
426
+ } ;
425
427
} ;
426
428
427
429
renderTimeline = ( ) => {
@@ -760,7 +762,7 @@ function AttachedIncidentsList({
760
762
{ alerts . map ( ( incident ) => {
761
763
return (
762
764
< HorizontalGroup key = { incident . pk } justify = { 'space-between' } >
763
- < PluginLink query = { { page : 'alert-groups ' , id : incident . pk } } >
765
+ < PluginLink query = { { page : 'incident ' , id : incident . pk } } >
764
766
#{ incident . inside_organization_number } { incident . render_for_web . title }
765
767
</ PluginLink >
766
768
< WithPermissionControlTooltip userAction = { UserActions . AlertGroupsWrite } >
0 commit comments