From 4acc58baf0b46ce0128f49d148a914253b08ae7c Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Thu, 29 Oct 2020 18:12:26 -0700 Subject: [PATCH] I dont know why javascript --- web/pages/components/chart.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/pages/components/chart.tsx b/web/pages/components/chart.tsx index 6f4c1ce39..735a6bd02 100644 --- a/web/pages/components/chart.tsx +++ b/web/pages/components/chart.tsx @@ -41,7 +41,7 @@ export default function Chart({ data, color, unit, dataCollections }: ChartProps }; if (dataCollections) { - var ticks = dataCollections?[0].data.map(function (collection) { + var ticks = dataCollections[0].data?.map(function (collection) { return collection?.time; }) } else {