diff --git a/dashboards-observability/public/components/event_analytics/explorer/visualizations/index.tsx b/dashboards-observability/public/components/event_analytics/explorer/visualizations/index.tsx index 01e96e08b..9e1829861 100644 --- a/dashboards-observability/public/components/event_analytics/explorer/visualizations/index.tsx +++ b/dashboards-observability/public/components/event_analytics/explorer/visualizations/index.tsx @@ -57,12 +57,13 @@ export const ExplorerVisualizations = ({ queryManager, }: IExplorerVisualizationsProps) => { const { vis } = visualizations; + const fields = visualizations.data.rawVizData?.metadata?.fields; const fieldOptionList = explorerFields.availableFields.map((field) => ({ ...field, label: field.name, })); - const metricFieldOptionList = fields.map((field) => { + const metricFieldOptionList = fields?.map((field) => { return { ...field, label: field.name }; }); @@ -87,7 +88,6 @@ export const ExplorerVisualizations = ({ ); default: