diff --git a/dashboards-observability/public/components/event_analytics/explorer/visualizations/config_panel/config_panes/config_controls/metric_config_panel_item.tsx b/dashboards-observability/public/components/event_analytics/explorer/visualizations/config_panel/config_panes/config_controls/metric_config_panel_item.tsx index e1d3da127..56023ddf2 100644 --- a/dashboards-observability/public/components/event_analytics/explorer/visualizations/config_panel/config_panes/config_controls/metric_config_panel_item.tsx +++ b/dashboards-observability/public/components/event_analytics/explorer/visualizations/config_panel/config_panes/config_controls/metric_config_panel_item.tsx @@ -126,9 +126,9 @@ export const MetricConfigPanelItem = ({ fieldOptionList, visualizations }: any) configList[key] && configList[key].forEach((field) => (selectedFields[field.label] = true)); } - return fieldOptionList - .filter((field) => !selectedFields[field.label]) - .filter((field) => numericalTypes.includes(field.type)); + return fieldOptionList.filter( + (field) => !selectedFields[field.label] && numericalTypes.includes(field.type) + ); }; const getCommonUI = (lists, sectionName: string) => @@ -153,7 +153,7 @@ export const MetricConfigPanelItem = ({ fieldOptionList, visualizations }: any) } > updateList(e.target.value, index, sectionName, 'custom_label')} - aria-label="Use aria labels when no actual label is in use" + aria-label="Adds a Custom Label for metrics field" />