Skip to content

Commit

Permalink
bug/CLDN-2472 (#413)
Browse files Browse the repository at this point in the history
* fix for metrics

* Update Dockerfile

* Update Dockerfile
  • Loading branch information
cccs-RyanK committed Apr 9, 2024
1 parent 6a783d7 commit 81e98e9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ export default function transformProps(chartProps: CccsGridChartProps) {
};

if (metrics) {
const metricsColumnDefs = formData.metrics.map((metric: any) => {
const metricsColumnDefs = formData.metrics?.map((metric: any) => {
const metricLabel = metric.label ? metric.label : metric
const metricHeader = metricVerboseNameMap[metric]
? metricVerboseNameMap[metric]
Expand All @@ -273,7 +273,7 @@ export default function transformProps(chartProps: CccsGridChartProps) {
enableRowGroup: true,
};
});
columnDefs = columnDefs.concat(metricsColumnDefs);
columnDefs = columnDefs.concat(metricsColumnDefs || []);
}

if (formData.percent_metrics) {
Expand Down

0 comments on commit 81e98e9

Please sign in to comment.