@@ -24,6 +24,7 @@ import {
|
||||
selectRowFieldType,
|
||||
selectRowLabelDescriptions
|
||||
} from "../../lib/newappeal/formDerivation";
|
||||
import { resolveCrmDisplayValue } from "../../lib/i18n/crmDisplay/resolveCrmDisplayValue";
|
||||
|
||||
let BuildCheckRow = (props) => {
|
||||
let { t } = useTranslation();
|
||||
@@ -74,14 +75,12 @@ let BuildCheckRow = (props) => {
|
||||
eval: true
|
||||
});
|
||||
|
||||
let labelTrans =
|
||||
router.locale == "cy"
|
||||
? jsonpath({
|
||||
path: '$..[?(@ && @.value=="' + label + '")].value_cy',
|
||||
json: formObj,
|
||||
eval: true
|
||||
})
|
||||
: label;
|
||||
let labelTrans = resolveCrmDisplayValue({
|
||||
value: label,
|
||||
locale,
|
||||
translations: formObj
|
||||
});
|
||||
|
||||
return labelTrans;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user