Skip to content

Commit

Permalink
Refactor MetricFilter component for improved readability in metric na…
Browse files Browse the repository at this point in the history
…me dropdown options
  • Loading branch information
simlarsen committed Nov 7, 2024
1 parent 0a82d94 commit a31ef12
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Dashboard/src/Components/Metrics/MetricQuery.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,11 @@ const MetricFilter: FunctionComponent<ComponentProps> = (
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
),
},
{
Expand Down

0 comments on commit a31ef12

Please sign in to comment.