From 0f79067003ba9ee3bae0a4374991980f6e2497bc Mon Sep 17 00:00:00 2001 From: Brett Edwards Date: Fri, 16 Feb 2024 13:29:54 -0800 Subject: [PATCH] MoreCast - double click fix (#3416) Fixes Morecast double click exception introduced in #3415 --- web/src/features/moreCast2/components/GridComponentRenderer.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/features/moreCast2/components/GridComponentRenderer.tsx b/web/src/features/moreCast2/components/GridComponentRenderer.tsx index dd3f7b0bd..bb2a0cac6 100644 --- a/web/src/features/moreCast2/components/GridComponentRenderer.tsx +++ b/web/src/features/moreCast2/components/GridComponentRenderer.tsx @@ -89,7 +89,7 @@ export class GridComponentRenderer { // we can leave it blank, so it's obvious that it can have a value entered into it. if (isNaN(value) && !isPreviousDate && isForecastColumn && !rowContainsActual) { return '' - } else return isNaN(value) ? noDataField : value.toFixed(precision) + } else return isNaN(value) ? noDataField : Number(value).toFixed(precision) } public renderForecastCellWith = (params: Pick, field: string) => {