From a98538d1869a863073b3334e2f4229ba7b7cde85 Mon Sep 17 00:00:00 2001 From: olehp Date: Mon, 29 Jan 2024 10:36:14 +0200 Subject: [PATCH] Fixed trace navigation --- src/components/Insights/TopUsageInsight/index.tsx | 4 ++-- src/components/Insights/TopUsageInsight/types.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/Insights/TopUsageInsight/index.tsx b/src/components/Insights/TopUsageInsight/index.tsx index ab8ceecea..487a7e6bf 100644 --- a/src/components/Insights/TopUsageInsight/index.tsx +++ b/src/components/Insights/TopUsageInsight/index.tsx @@ -30,7 +30,7 @@ export const TopUsageInsight = (props: TopUsageInsightProps) => { const handleTraceButtonClick = ( trace: Trace, insightType: InsightType, - spanCodeObjectId: string + spanCodeObjectId?: string ) => { props.onTraceButtonClick(trace, insightType, spanCodeObjectId); }; @@ -94,7 +94,7 @@ export const TopUsageInsight = (props: TopUsageInsightProps) => { id: traceId }, props.insight.type, - flow.firstService.spanCodeObjectId + props.insight.spanInfo?.spanCodeObjectId ) } > diff --git a/src/components/Insights/TopUsageInsight/types.ts b/src/components/Insights/TopUsageInsight/types.ts index 8eff546c8..219947885 100644 --- a/src/components/Insights/TopUsageInsight/types.ts +++ b/src/components/Insights/TopUsageInsight/types.ts @@ -10,6 +10,6 @@ export interface TopUsageInsightProps extends InsightProps { onTraceButtonClick: ( trace: Trace, insightType: InsightType, - spanCodeObjectId: string + spanCodeObjectId?: string ) => void; }