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 9b77bff99..1e93d7ea2 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 @@ -22,7 +22,7 @@ import { AGGREGATIONS, GROUPBY, METRICS_AGGREGATION_OPTIONS, - numericalTypes, + NUMERICAL_TYPES, } from '../../../../../../../../common/constants/explorer'; import { VIS_CHART_TYPES } from '../../../../../../../../common/constants/shared'; import { MetricList, MetricListEntry } from '../../../../../../../../common/types/explorer'; @@ -54,7 +54,7 @@ export const MetricConfigPanelItem = ({ fieldOptionList, visualizations }: any) ...userConfigs?.dataConfig, }); } - }, [userConfigs, userConfigs?.dataConfig, visualizations.vis.name]); + }, [userConfigs?.dataConfig, visualizations.vis.name]); const updateList = (value: string, index: number, name: string, field: string) => { const listItem = { @@ -128,7 +128,7 @@ export const MetricConfigPanelItem = ({ fieldOptionList, visualizations }: any) } } return fieldOptionList.filter( - (field) => !selectedFields[field.label] && numericalTypes.includes(field.type) + (field) => !selectedFields[field.label] && NUMERICAL_TYPES.includes(field.type) ); }; diff --git a/dashboards-observability/public/components/visualizations/charts/metrics/metrics.scss b/dashboards-observability/public/components/visualizations/charts/metrics/metrics.scss index 10777c1b7..b8ce0c772 100644 --- a/dashboards-observability/public/components/visualizations/charts/metrics/metrics.scss +++ b/dashboards-observability/public/components/visualizations/charts/metrics/metrics.scss @@ -36,4 +36,4 @@ top: 20px; text-align: center; width: '100%' -} \ No newline at end of file +}