diff --git a/presto-ui/src/utils.js b/presto-ui/src/utils.js index 64cdd2f1a933b..0deaca252ca2b 100644 --- a/presto-ui/src/utils.js +++ b/presto-ui/src/utils.js @@ -325,6 +325,9 @@ export function computeRate(count: number, ms: number): number { } export function precisionRound(n: number): string { + if (n === undefined) { + return ""; + } if (n < 10) { return n.toFixed(2); }