DM-422 - Remove remaining reason/legal basis fields

This commit is contained in:
Valentin Mihai 2023-09-12 11:52:40 +03:00
parent b7be0e916a
commit 49b9e98230

View File

@ -429,6 +429,10 @@ export class AnnotationWrapper implements IListable {
}
if (entry.reason) {
if (isDocumine && entry.reason.slice(-1) === '.') {
entry.reason = entry.reason.slice(0, -1);
}
content += entry.reason + '\n\n';
//remove leading and trailing commas and whitespaces
content = content.replace(/(^[, ]*)|([, ]*$)/g, '');