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 e1985d7bd..5a19d4356 100644 --- a/apps/red-ui/src/app/models/file/annotation.wrapper.ts +++ b/apps/red-ui/src/app/models/file/annotation.wrapper.ts @@ -77,6 +77,10 @@ export class AnnotationWrapper implements IListable { return this.engines.includes(LogEntryEngines.DICTIONARY); } + get isRedactedImageHint() { + return this.IMAGE_HINT && this.superType === SuperTypes.Redaction; + } + get searchKey(): string { return this.id; } @@ -291,7 +295,10 @@ export class AnnotationWrapper implements IListable { } else { const colorKey = annotationEntityColorConfig[annotationWrapper.superType]; const defaultColor = annotationDefaultColorConfig[annotationWrapper.superType]; - annotationWrapper.color = dictionary ? (dictionary[colorKey] as string) : (defaultColors[defaultColor] as string); + annotationWrapper.color = + dictionary && !annotationWrapper.isRedactedImageHint + ? (dictionary[colorKey] as string) + : (defaultColors[defaultColor] as string); } annotationWrapper.entry = logEntry;