mirror of
https://github.com/grafana/grafana.git
synced 2024-11-22 08:56:43 -06:00
Dashboards: Fix 'days' unit pluralization (#93326)
This commit is contained in:
parent
eb3f64b3f8
commit
98a4d2858a
@ -185,7 +185,7 @@ export function toDays(size: number, decimals?: DecimalCount): FormattedValue {
|
||||
}
|
||||
|
||||
if (Math.abs(size) < 7) {
|
||||
return { text: toFixed(size, decimals), suffix: ' day' };
|
||||
return toFixedScaled(size, decimals, ' day');
|
||||
} else if (Math.abs(size) < 365) {
|
||||
return toFixedScaled(size / 7, decimals, ' week');
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user