diff --git a/src/chart_types/xy_chart/state/selectors/get_annotation_tooltip_state.ts b/src/chart_types/xy_chart/state/selectors/get_annotation_tooltip_state.ts index 22a74e779e..db63366c93 100644 --- a/src/chart_types/xy_chart/state/selectors/get_annotation_tooltip_state.ts +++ b/src/chart_types/xy_chart/state/selectors/get_annotation_tooltip_state.ts @@ -133,9 +133,7 @@ function getTooltipStateForDOMElements( } const dimension = (annotationDimensions.get(hoveredDOMElement.createdBySpecId) ?? []) .filter(isAnnotationLineProps) - .find((d) => { - return d.id === hoveredDOMElement.id && d.datum === hoveredDOMElement.datum; - }); + .find(({ id }) => id === hoveredDOMElement.id); if (!dimension) { return null;