handled corner case

This commit is contained in:
Timo 2021-01-03 12:15:43 +02:00
parent dd91ad8446
commit 6f3ac88ff7

View File

@ -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;
}