chore: Update pre-commit packages (#23173)

This commit is contained in:
Hugh A. Miles II
2023-03-13 17:05:13 -06:00
committed by GitHub
parent 9ae81b7c33
commit b820eb8235
87 changed files with 112 additions and 218 deletions

View File

@@ -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],
);