From de6b57d7cd8305d69ce4900d9fe553e44beb218c Mon Sep 17 00:00:00 2001 From: Timo Date: Fri, 23 Jul 2021 14:46:51 +0300 Subject: [PATCH] fixed legal basis issues with backend not exactly matching LB reason --- 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 d27d555d9..58090089d 100644 --- a/apps/red-ui/src/app/models/file/annotation.wrapper.ts +++ b/apps/red-ui/src/app/models/file/annotation.wrapper.ts @@ -359,7 +359,7 @@ export class AnnotationWrapper { private static _getShortContent(entry: RedactionLogEntryWrapper) { if (entry.legalBasis) { - const lb = entry.legalBasisMapping?.find(lbm => lbm.reason === entry.legalBasis); + const lb = entry.legalBasisMapping?.find(lbm => lbm.reason.toLowerCase().includes(entry.legalBasis.toLowerCase())); if (lb) return lb.name; }