mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
data/scaledUnits: Handle size === undefined more gracefully (#63218)
This commit is contained in:
parent
71b7c62021
commit
c769a6281e
@ -136,7 +136,7 @@ const logb = (b: number, x: number) => Math.log10(x) / Math.log10(b);
|
||||
|
||||
export function scaledUnits(factor: number, extArray: string[], offset = 0): ValueFormatter {
|
||||
return (size: number, decimals?: DecimalCount) => {
|
||||
if (size === null) {
|
||||
if (size === null || size === undefined) {
|
||||
return { text: '' };
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user