diff --git a/src/components/charts/ChartTimeBase.tsx b/src/components/charts/ChartTimeBase.tsx index 7bd701e..783aa77 100644 --- a/src/components/charts/ChartTimeBase.tsx +++ b/src/components/charts/ChartTimeBase.tsx @@ -201,7 +201,7 @@ export const ChartTimeBase: React.FC = ({options, dataParams let thisOptions = {} Object.assign(thisOptions, defaultOptions, options) - let newChart = new Chart(chartRef.current, { + let newChart = new Chart(chartRef.current ?? "", { type: 'line', plugins: [ChartDataLabels], options: thisOptions,