fixed legal basis issues with backend not exactly matching LB reason
This commit is contained in:
parent
17d9a97bce
commit
de6b57d7cd
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user