mirror of
https://github.com/ichsankurnia/hats-app.git
synced 2026-12-06 21:36:28 +00:00
fixing typescript error during production build
Adjust chart components (Overview, PieChart) for sizing and safer typings/casting; add v1.2.0 release note. Remove several obsolete dummy/old task pages and the useDummyTaskData hook. Also include minor fixes to FormClient and DonutChart/performance pages.
This commit is contained in:
@@ -64,7 +64,7 @@ const DonutChart: FC<Props> = ({ data, labels, colors }) => {
|
||||
enabled: true,
|
||||
formatter: function (val: any, opts) {
|
||||
// console.log(opts)
|
||||
return opts.w.globals.labels[opts.seriesIndex] + ': ' + opts.w.globals.series[opts.seriesIndex]
|
||||
return opts?.w.globals.labels[opts.seriesIndex] + ': ' + opts?.w.globals.series[opts.seriesIndex]
|
||||
// return opts.w.globals.series[opts.seriesIndex]
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user