diff --git a/apps/red-ui/src/app/models/file/annotation.wrapper.ts b/apps/red-ui/src/app/models/file/annotation.wrapper.ts index 4c2d32f84..1f70f65d3 100644 --- a/apps/red-ui/src/app/models/file/annotation.wrapper.ts +++ b/apps/red-ui/src/app/models/file/annotation.wrapper.ts @@ -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;