Skip to content

Commit

Permalink
fix: annotation tooltip display when remounting specs (opensearch-pro…
Browse files Browse the repository at this point in the history
  • Loading branch information
nickofthyme authored May 27, 2021
1 parent 2cfa5c0 commit 7163951
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7163951

Please sign in to comment.