Skip to content

Commit

Permalink
fix: annotation tooltip display when remounting specs (#1167)
Browse files Browse the repository at this point in the history
  • Loading branch information
nickofthyme authored May 27, 2021
1 parent 5b26dbe commit 8408600
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 8408600

Please sign in to comment.