Skip to content

Commit

Permalink
fix: consider removed anchors
Browse files Browse the repository at this point in the history
Co-authored-by: Ivan Palatov <[email protected]>
  • Loading branch information
gabrieljablonski and ivan-palatov committed Oct 24, 2023
1 parent 24b2593 commit fafd151
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Tooltip/Tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ const Tooltip = ({
*/
}
})
if (newAnchors.length) {
if (newAnchors.length || removedAnchors.length) {
setAnchorsBySelect((anchors) => [
...anchors.filter((anchor) => removedAnchors.includes(anchor)),
...newAnchors,
Expand Down

0 comments on commit fafd151

Please sign in to comment.