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-05 16:13:05 +02:00
parent 2bd524842e
commit f5d63c9174

View File

@ -96,7 +96,7 @@ export class AnnotationDetailsComponent implements OnChanges {
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',