From 485ec9b143965cd2a25433586658a50d80c31ecb Mon Sep 17 00:00:00 2001 From: Nicoleta Panaghiu Date: Fri, 6 Jan 2023 12:44:23 +0200 Subject: [PATCH] RED-5805: Fixed target reason not displayed properly. --- apps/red-ui/src/app/models/file/annotation.wrapper.ts | 3 +++ 1 file changed, 3 insertions(+) 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 32a7c15c2..2af861b76 100644 --- a/apps/red-ui/src/app/models/file/annotation.wrapper.ts +++ b/apps/red-ui/src/app/models/file/annotation.wrapper.ts @@ -321,6 +321,9 @@ export class AnnotationWrapper implements IListable, Record { 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);