Skip to content

Commit 79713bb

Browse files
natemoo-rescttcper
andauthored
Update static/app/views/detectors/detail.tsx
Co-authored-by: Scott Cooper <scttcper@gmail.com>
1 parent 3a9d34e commit 79713bb

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

static/app/views/detectors/detail.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,7 @@ const priorities: Priority[] = [
3838
export default function DetectorDetail() {
3939
const organization = useOrganization();
4040
useWorkflowEngineFeatureGate({redirect: true});
41-
const {detectorId} = useParams();
42-
if (!detectorId) {
43-
throw new Error(`Unable to find detector.`);
44-
}
41+
const {detectorId} = useParams<{detectorId: string}>();
4542
const {data: detector} = useDetectorQuery(detectorId);
4643

4744
return (

0 commit comments

Comments
 (0)