Skip to content

Commit 644c6ea

Browse files
committed
feat(aci): fix detector query util
1 parent 14b6cce commit 644c6ea

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

static/app/utils/useParams.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ type ParamKeys =
2424
| 'groupId'
2525
| 'id'
2626
| 'installationId'
27+
| 'detectorId'
2728
| 'integrationSlug'
2829
| 'issueId'
2930
| 'memberId'

static/app/views/detectors/hooks/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export function useDetectorsQuery(
2424
}
2525

2626
export const makeDetectorQueryKey = (orgSlug: string, detectorId = ''): [url: string] => [
27-
`/organizations/${orgSlug}/detectors/${detectorId}`,
27+
`/organizations/${orgSlug}/detectors/${detectorId ? `${detectorId}/` : ''}`,
2828
];
2929

3030
export function useCreateDetector(detector: Detector) {

static/app/views/detectors/routes.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const detectorRoutes = (
1111
component={make(() => import('sentry/views/detectors/new-settings'))}
1212
/>
1313
</Route>
14-
<Route path=":monitorId/">
14+
<Route path=":detectorId/">
1515
<IndexRoute component={make(() => import('sentry/views/detectors/detail'))} />
1616
<Route path="edit/" component={make(() => import('sentry/views/detectors/edit'))} />
1717
</Route>

0 commit comments

Comments
 (0)