From 1d8db71b356c01606bb51b1a5155405dc33d6bcf Mon Sep 17 00:00:00 2001 From: "alejandro.bulgaris@qcif.edu.au" Date: Mon, 16 Oct 2023 01:02:59 +0000 Subject: [PATCH] Fix delim pair ternary has to check titleVal --- angular-legacy/shared/form/field-vocab.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/angular-legacy/shared/form/field-vocab.component.ts b/angular-legacy/shared/form/field-vocab.component.ts index 20036a06c1..a12b5253b1 100644 --- a/angular-legacy/shared/form/field-vocab.component.ts +++ b/angular-legacy/shared/form/field-vocab.component.ts @@ -240,7 +240,7 @@ export class VocabField extends FieldBase { const delimPair = this.titleFieldDelim[idx]; const titleVal = data[titleFld]; if (titleVal) { - title = `${title}${_.isEmpty(title) ? '' : delimPair.prefix}${titleVal}${_.isEmpty(title) ? '' : delimPair.suffix}`; + title = `${title}${_.isEmpty(titleVal) ? '' : delimPair.prefix}${titleVal}${_.isEmpty(titleVal) ? '' : delimPair.suffix}`; } }); }