Skip to content

Commit e9fbea8

Browse files
Added proper existingTargetUpdated existence check
1 parent 7eb3603 commit e9fbea8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/text-annotator/src/SelectionHandler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ export const SelectionHandler = (
320320
const { target: { updated: existingTargetUpdated } } = existingAnnotation;
321321
const { updated: currentTargetUpdated } = currentTarget;
322322
if (
323-
!existingAnnotation ||
323+
!existingTargetUpdated ||
324324
!currentTargetUpdated ||
325325
existingTargetUpdated < currentTargetUpdated
326326
) {

0 commit comments

Comments
 (0)