Minor fix to isEqual method

This commit is contained in:
Rainer Simon 2020-04-12 11:50:10 +02:00
parent b6f8a62a35
commit ce23468b01
1 changed files with 1 additions and 1 deletions

View File

@ -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;