RED-7550: cleanup.

This commit is contained in:
Nicoleta Panaghiu 2023-11-02 15:57:21 +02:00
parent 0e5e8f5cc4
commit 693553627d

View File

@ -43,6 +43,7 @@ export class AnnotationWrapper implements IListable {
AREA = false;
HINT = false;
IMAGE = false;
IMAGE_HINT = false;
section?: string;
reference: string[] = [];
imported = false;
@ -91,7 +92,7 @@ export class AnnotationWrapper implements IListable {
}
get isImage() {
return this.type?.toLowerCase() === 'image' || this.IMAGE || this['entry']['entryType'] === 'IMAGE_HINT';
return this.type?.toLowerCase() === 'image' || this.IMAGE || this.IMAGE_HINT;
}
get isOCR() {
@ -229,6 +230,7 @@ export class AnnotationWrapper implements IListable {
annotationWrapper.HINT = logEntry.entryType === EntityTypes.HINT;
annotationWrapper.IMAGE = logEntry.entryType === EntityTypes.IMAGE;
annotationWrapper.AREA = logEntry.entryType === EntityTypes.AREA;
annotationWrapper.IMAGE_HINT = logEntry.entryType === EntityTypes.IMAGE_HINT;
annotationWrapper.isIgnored = logEntry.state === EntryStates.IGNORED;