diff --git a/x-pack/plugins/apm/public/components/shared/charts/timeseries_chart_with_context.tsx b/x-pack/plugins/apm/public/components/shared/charts/timeseries_chart_with_context.tsx index 101fe2b9c8967..85333f22aa45e 100644 --- a/x-pack/plugins/apm/public/components/shared/charts/timeseries_chart_with_context.tsx +++ b/x-pack/plugins/apm/public/components/shared/charts/timeseries_chart_with_context.tsx @@ -77,8 +77,9 @@ export function TimeseriesChartWithContext({ const annotationColor = theme.eui.euiColorSuccess; const { annotations } = useAnnotationsContext(); - const getAnnotations = () => ( + const timeseriesAnnotations = [ ({ @@ -93,8 +94,8 @@ export function TimeseriesChartWithContext({ }} marker={} markerPosition={Position.Top} - /> - ); + />, + ]; return (