RED-5805: Fixed target reason not displayed properly.

This commit is contained in:
Nicoleta Panaghiu 2023-01-06 12:44:23 +02:00
parent 98e4a65b15
commit 485ec9b143

View File

@ -321,6 +321,9 @@ export class AnnotationWrapper implements IListable, Record<string, unknown> {
annotationWrapper.hasBeenRemovedByManualOverride = !!redactionLogEntry.manualChanges?.find(
c => c.manualRedactionType === ManualRedactionType.REMOVE_LOCALLY && c.annotationStatus === LogEntryStatus.APPROVED,
);
annotationWrapper.legalBasisChangeValue = redactionLogEntry.manualChanges?.find(
c => c.manualRedactionType === ManualRedactionType.LEGAL_BASIS_CHANGE && c.annotationStatus === LogEntryStatus.REQUESTED,
)?.propertyChanges.legalBasis;
this._createContent(annotationWrapper, redactionLogEntry);
this._setSuperType(annotationWrapper, redactionLogEntry);