mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -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) {
|
if (Math.abs(size) < 7) {
|
||||||
return { text: toFixed(size, decimals), suffix: ' day' };
|
return toFixedScaled(size, decimals, ' day');
|
||||||
} else if (Math.abs(size) < 365) {
|
} else if (Math.abs(size) < 365) {
|
||||||
return toFixedScaled(size / 7, decimals, ' week');
|
return toFixedScaled(size / 7, decimals, ' week');
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user