From 6f3ac88ff7264926a28dab15543167d5072eb9db Mon Sep 17 00:00:00 2001 From: Timo Date: Sun, 3 Jan 2021 12:15:43 +0200 Subject: [PATCH] handled corner case --- apps/red-ui/src/app/screens/file/model/annotation.wrapper.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; }