Minor fix to isEqual method
This commit is contained in:
parent
b6f8a62a35
commit
ce23468b01
|
@ -22,7 +22,7 @@ export default class WebAnnotation {
|
||||||
|
|
||||||
/** An equality check based on the underlying object or (if given) ID **/
|
/** An equality check based on the underlying object or (if given) ID **/
|
||||||
isEqual(other) {
|
isEqual(other) {
|
||||||
if (!other) {
|
if (!other || other?.type !== 'Annotation') {
|
||||||
return false;
|
return false;
|
||||||
} else if (this.underlying === other.underlying) {
|
} else if (this.underlying === other.underlying) {
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue