From 972b13a370e4bad553c72ee1b493fdf53d8532a7 Mon Sep 17 00:00:00 2001 From: Michelle Zhang <56095982+michellewzhang@users.noreply.github.com> Date: Fri, 20 Sep 2024 14:44:56 -0700 Subject: [PATCH] fix(insights): fix broken issue link (#77868) if no `event_id` is passed into the component, then don't render a specific event page. before: https://github.com/user-attachments/assets/341e17c3-de61-41b4-bc16-96c03bfacb31 after: https://github.com/user-attachments/assets/ad3c46e8-6a39-45dd-aaee-ddf10fd9dad4 --- static/app/views/insights/common/components/issues.tsx | 2 +- .../traceDrawer/details/issues/issueSummary.tsx | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/static/app/views/insights/common/components/issues.tsx b/static/app/views/insights/common/components/issues.tsx index 296bd4b9e97c8e..bd7b29cbb6b7ee 100644 --- a/static/app/views/insights/common/components/issues.tsx +++ b/static/app/views/insights/common/components/issues.tsx @@ -32,7 +32,7 @@ function Issue({data}: {data: Group}) { return ( - + diff --git a/static/app/views/performance/newTraceDetails/traceDrawer/details/issues/issueSummary.tsx b/static/app/views/performance/newTraceDetails/traceDrawer/details/issues/issueSummary.tsx index 321c9aa89ec313..98148369e6a898 100644 --- a/static/app/views/performance/newTraceDetails/traceDrawer/details/issues/issueSummary.tsx +++ b/static/app/views/performance/newTraceDetails/traceDrawer/details/issues/issueSummary.tsx @@ -16,8 +16,8 @@ import useOrganization from 'sentry/utils/useOrganization'; interface EventOrGroupHeaderProps { data: Group; - event_id: string; organization: Organization; + event_id?: string; } /** @@ -51,7 +51,7 @@ function IssueTitleChildren(props: IssueTitleChildrenProps) { interface IssueTitleProps { data: Group; - event_id: string; + event_id?: string; } function IssueTitle(props: IssueTitleProps) { const organization = useOrganization(); @@ -71,7 +71,9 @@ function IssueTitle(props: IssueTitleProps) {