mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-16 19:56:01 +08:00
fix(useFunnelMetrics): ensure latency type defaults to P99 when undefined
This commit is contained in:
parent
af54aa4632
commit
6309ff96bd
@ -91,7 +91,10 @@ export function useFunnelStepsMetrics({
|
||||
} = useFunnelStepsOverview(funnelId, payload);
|
||||
|
||||
const latencyType = useMemo(
|
||||
() => (stepStart ? steps[stepStart]?.latency_type : LatencyOptions.P99),
|
||||
() =>
|
||||
stepStart
|
||||
? steps[stepStart]?.latency_type ?? LatencyOptions.P99
|
||||
: LatencyOptions.P99,
|
||||
[stepStart, steps],
|
||||
);
|
||||
|
||||
@ -113,7 +116,7 @@ export function useFunnelStepsMetrics({
|
||||
),
|
||||
},
|
||||
{
|
||||
title: `${latencyType?.toUpperCase()} Latency`,
|
||||
title: `${latencyType.toUpperCase()} Latency`,
|
||||
value: getYAxisFormattedValue(
|
||||
(sourceData.latency * 1_000_000).toString(),
|
||||
'ns',
|
||||
|
Loading…
x
Reference in New Issue
Block a user