diff --git a/src/WebAnnotation.js b/src/WebAnnotation.js index 5f02fcd..fff3099 100644 --- a/src/WebAnnotation.js +++ b/src/WebAnnotation.js @@ -22,7 +22,7 @@ export default class WebAnnotation { /** An equality check based on the underlying object or (if given) ID **/ isEqual(other) { - if (!other) { + if (!other || other?.type !== 'Annotation') { return false; } else if (this.underlying === other.underlying) { return true;