mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[APM] Format comparison value for all overview mobile metrics (#180353)
## Summary Fixes https://github.com/elastic/kibana/issues/174551 ### before  ### after 
This commit is contained in:
parent
d3fe5434b3
commit
f469fc2940
1 changed files with 4 additions and 2 deletions
|
@ -73,7 +73,9 @@ export function MobileStats({
|
|||
return (
|
||||
<span>
|
||||
{value && comparisonEnabled
|
||||
? `${previousPeriodLabel}: ${value}`
|
||||
? `${previousPeriodLabel}: ${
|
||||
Number.isInteger(value) ? value : value.toFixed(2)
|
||||
}`
|
||||
: null}
|
||||
</span>
|
||||
);
|
||||
|
@ -132,7 +134,7 @@ export function MobileStats({
|
|||
: valueFormatter(Number(value.toFixed(1)), 'ms'),
|
||||
trend: data?.currentPeriod?.launchTimes?.timeseries ?? [],
|
||||
extra: getComparisonValueFormatter(
|
||||
data?.previousPeriod.launchTimes?.value?.toFixed(1)
|
||||
data?.previousPeriod.launchTimes?.value
|
||||
),
|
||||
trendShape: MetricTrendShape.Area,
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue