Skip to content

Commit

Permalink
Added proper existingTargetUpdated existence check
Browse files Browse the repository at this point in the history
  • Loading branch information
oleksandr-danylchenko authored Nov 8, 2024
1 parent 7eb3603 commit e9fbea8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/text-annotator/src/SelectionHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ export const SelectionHandler = (
const { target: { updated: existingTargetUpdated } } = existingAnnotation;
const { updated: currentTargetUpdated } = currentTarget;
if (
!existingAnnotation ||
!existingTargetUpdated ||
!currentTargetUpdated ||
existingTargetUpdated < currentTargetUpdated
) {
Expand Down

0 comments on commit e9fbea8

Please sign in to comment.