From 8632b73c646754bb4b2fd2ed55d5c9b904ddbff1 Mon Sep 17 00:00:00 2001 From: KharchenkoVladimir Date: Mon, 15 Nov 2021 15:18:07 +0500 Subject: [PATCH] Fixed Chart creation error in ChartTimeBase.tsx --- src/components/charts/ChartTimeBase.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,