We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a9d34e commit 79713bbCopy full SHA for 79713bb
static/app/views/detectors/detail.tsx
@@ -38,10 +38,7 @@ const priorities: Priority[] = [
38
export default function DetectorDetail() {
39
const organization = useOrganization();
40
useWorkflowEngineFeatureGate({redirect: true});
41
- const {detectorId} = useParams();
42
- if (!detectorId) {
43
- throw new Error(`Unable to find detector.`);
44
- }
+ const {detectorId} = useParams<{detectorId: string}>();
45
const {data: detector} = useDetectorQuery(detectorId);
46
47
return (
0 commit comments