mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-21 22:59:07 +00:00
Refactor MetricFilter component for improved readability in metric name dropdown options
This commit is contained in:
parent
0a82d940fd
commit
a31ef122a3
@ -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
|
||||
),
|
||||
},
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user