forked from ddrilling/asb_cloud_front
Fixed Chart creation error in ChartTimeBase.tsx
This commit is contained in:
parent
6ec3836abe
commit
8632b73c64
@ -201,7 +201,7 @@ export const ChartTimeBase: React.FC<ChartTimeBaseProps> = ({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,
|
||||
|
Loading…
Reference in New Issue
Block a user