mirror of
https://github.com/apache/superset.git
synced 2026-04-20 16:44:46 +00:00
chore: Update pre-commit packages (#23173)
This commit is contained in:
@@ -55,11 +55,13 @@ export default function transformProps(chartProps: TableChartProps) {
|
||||
typeof column === 'object' ? column : { label: column },
|
||||
);
|
||||
} else {
|
||||
/* eslint-disable */
|
||||
const metricMap = datasource.metrics.reduce((acc, current) => {
|
||||
const map = acc;
|
||||
map[current.metric_name] = current;
|
||||
return map;
|
||||
}, {} as Record<string, Metric>);
|
||||
/* eslint-disable */
|
||||
rows = metrics.map(metric =>
|
||||
typeof metric === 'object' ? metric : metricMap[metric],
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user