mirror of
https://github.com/apache/superset.git
synced 2026-04-20 00:24:38 +00:00
feat(fe): upgrade superset-frontend to Typescript v5 (#31979)
Signed-off-by: hainenber <dotronghai96@gmail.com> Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com>
This commit is contained in:
@@ -56,13 +56,13 @@ export default function transformProps(chartProps: TableChartProps) {
|
||||
);
|
||||
} else {
|
||||
/* eslint-disable */
|
||||
const metricMap = datasource.metrics.reduce(
|
||||
const metricMap = datasource.metrics.reduce<Record<string, Metric>>(
|
||||
(acc, current) => {
|
||||
const map = acc;
|
||||
map[current.metric_name] = current;
|
||||
return map;
|
||||
},
|
||||
{} as Record<string, Metric>,
|
||||
{},
|
||||
);
|
||||
/* eslint-disable */
|
||||
rows = metrics.map(metric =>
|
||||
|
||||
Reference in New Issue
Block a user