From 9c9efce2d132f0dfa30436d06c394a80b4b2b77a Mon Sep 17 00:00:00 2001 From: Kresnadi Budisantoso Date: Mon, 5 Jul 2021 08:02:58 +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 46be35fbc..e535be68f 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.legalBasis); + const lb = entry.legalBasisMapping?.find(lbm => lbm.reason === entry.legalBasis); if (lb) return lb.name; }