diff --git a/apps/red-ui/src/app/screens/file/model/annotation.wrapper.ts b/apps/red-ui/src/app/screens/file/model/annotation.wrapper.ts index 7cb9ce388..9b69f725b 100644 --- a/apps/red-ui/src/app/screens/file/model/annotation.wrapper.ts +++ b/apps/red-ui/src/app/screens/file/model/annotation.wrapper.ts @@ -134,7 +134,7 @@ export class AnnotationWrapper { } // there has been an undo on a redaction remove - if (redactionLogEntry?.manualRedactionType === 'REMOVE' && !idRemoval) { + if (redactionLogEntry?.manualRedactionType === 'REMOVE' && !idRemoval && !redactionLogEntry.hint) { redactionLogEntry.redacted = true; } @@ -182,6 +182,7 @@ export class AnnotationWrapper { AnnotationWrapper._setSuperType(annotationWrapper, redactionLogEntry, manualRedactionEntry, idRemoval); annotationWrapper.typeLabel = 'annotation-type.' + annotationWrapper.superType; + return annotationWrapper; }