From a31ef122a3e3b286e426599958c6be0851bb3fd4 Mon Sep 17 00:00:00 2001 From: Simon Larsen Date: Thu, 7 Nov 2024 17:45:34 +0000 Subject: [PATCH] Refactor MetricFilter component for improved readability in metric name dropdown options --- Dashboard/src/Components/Metrics/MetricQuery.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Dashboard/src/Components/Metrics/MetricQuery.tsx b/Dashboard/src/Components/Metrics/MetricQuery.tsx index d8b77a8f05..6ae3859e39 100644 --- a/Dashboard/src/Components/Metrics/MetricQuery.tsx +++ b/Dashboard/src/Components/Metrics/MetricQuery.tsx @@ -40,9 +40,11 @@ const MetricFilter: FunctionComponent = ( title: "Metric Name", type: FieldType.Dropdown, filterDropdownOptions: DropdownUtil.getDropdownOptionsFromArray( - props.metricNameAndUnits.map((metricNameAndUnits: MetricNameAndUnit) => { - return metricNameAndUnits.metricName; - }), // metricNameAndUnit is an array of MetricNameAndUnit + props.metricNameAndUnits.map( + (metricNameAndUnits: MetricNameAndUnit) => { + return metricNameAndUnits.metricName; + }, + ), // metricNameAndUnit is an array of MetricNameAndUnit ), }, {