diff --git a/src/WebAnnotation.js b/src/WebAnnotation.js index aed7fb0..76f8741 100644 --- a/src/WebAnnotation.js +++ b/src/WebAnnotation.js @@ -26,7 +26,7 @@ export default class WebAnnotation { /** An equality check based on the underlying object or (if given) ID **/ isEqual(other) { - if (!other || other?.type !== 'Annotation') { + if (other?.type !== 'Annotation') { return false; } else if (this.underlying === other.underlying) { return true; @@ -114,4 +114,4 @@ export default class WebAnnotation { return this.selector('TextPositionSelector').end; } -} \ No newline at end of file +}