RED-10593 - when legalBasisValue = 'n-a' set empty string as param to not display "Annotation based on rule n-a"

This commit is contained in:
Valentin Mihai 2024-12-04 19:06:05 +02:00
parent f30151e195
commit fffcc80201

View File

@ -89,7 +89,7 @@ export class AnnotationDetailsComponent {
icon: 'red:rule',
description: _('annotation-engines.rule'),
show: isBasedOn(annotation, LogEntryEngines.RULE),
translateParams: { rule: annotation.legalBasisValue || '' },
translateParams: { rule: annotation.legalBasisValue === 'n-a' ? '' : annotation.legalBasisValue || '' },
},
{
icon: 'red:import_redactions',