File tree 3 files changed +3
-2
lines changed
3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ type ParamKeys =
24
24
| 'groupId'
25
25
| 'id'
26
26
| 'installationId'
27
+ | 'detectorId'
27
28
| 'integrationSlug'
28
29
| 'issueId'
29
30
| 'memberId'
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ export function useDetectorsQuery(
24
24
}
25
25
26
26
export const makeDetectorQueryKey = ( orgSlug : string , detectorId = '' ) : [ url : string ] => [
27
- `/organizations/${ orgSlug } /detectors/${ detectorId } ` ,
27
+ `/organizations/${ orgSlug } /detectors/${ detectorId ? ` ${ detectorId } /` : '' } ` ,
28
28
] ;
29
29
30
30
export function useCreateDetector ( detector : Detector ) {
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ export const detectorRoutes = (
11
11
component = { make ( ( ) => import ( 'sentry/views/detectors/new-settings' ) ) }
12
12
/>
13
13
</ Route >
14
- < Route path = ":monitorId /" >
14
+ < Route path = ":detectorId /" >
15
15
< IndexRoute component = { make ( ( ) => import ( 'sentry/views/detectors/detail' ) ) } />
16
16
< Route path = "edit/" component = { make ( ( ) => import ( 'sentry/views/detectors/edit' ) ) } />
17
17
</ Route >
You can’t perform that action at this time.
0 commit comments