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 af54aa4 commit 6309ff9Copy full SHA for 6309ff9
frontend/src/hooks/TracesFunnels/useFunnelMetrics.ts
@@ -91,7 +91,10 @@ export function useFunnelStepsMetrics({
91
} = useFunnelStepsOverview(funnelId, payload);
92
93
const latencyType = useMemo(
94
- () => (stepStart ? steps[stepStart]?.latency_type : LatencyOptions.P99),
+ () =>
95
+ stepStart
96
+ ? steps[stepStart]?.latency_type ?? LatencyOptions.P99
97
+ : LatencyOptions.P99,
98
[stepStart, steps],
99
);
100
@@ -113,7 +116,7 @@ export function useFunnelStepsMetrics({
113
116
),
114
117
},
115
118
{
- title: `${latencyType?.toUpperCase()} Latency`,
119
+ title: `${latencyType.toUpperCase()} Latency`,
120
value: getYAxisFormattedValue(
121
(sourceData.latency * 1_000_000).toString(),
122
'ns',
0 commit comments