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 {