From ed3cffdc6ea314e6802c2579077872dc7af711fc Mon Sep 17 00:00:00 2001 From: Kresnadi Budisantoso Date: Mon, 5 Jul 2021 07:16:30 +0200 Subject: [PATCH] RED-1738 Fix mapping of short legal basis text --- apps/red-ui/src/app/models/file/annotation.wrapper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 9d2783bc7..a7ae517bc 100644 --- a/apps/red-ui/src/app/models/file/annotation.wrapper.ts +++ b/apps/red-ui/src/app/models/file/annotation.wrapper.ts @@ -398,7 +398,7 @@ export class AnnotationWrapper { private static _getShortContent(entry: RedactionLogEntryWrapper) { if (entry.legalBasis) { - const lb = entry.legalBasisMapping?.find(lbm => lbm.description === entry.reason); + const lb = entry.legalBasisMapping?.find(lbm => lbm.description === entry.legalBasis); if (lb) return lb.name; }