uodated queries to sort deep recursion

This commit is contained in:
2025-04-16 08:44:45 +01:00
parent 420501dbf1
commit d882e65071
54 changed files with 270 additions and 267 deletions
+2 -2
View File
@@ -72,7 +72,7 @@ let BuildCheckRow = (props) => {
let labelTrans =
router.locale == "cy"
? jsonpath({
path: '$..[?(@.value=="' + label + '")].value_cy',
path: '$..[?(@ && @.value=="' + label + '")].value_cy',
json: formObj,
eval: true,
})
@@ -103,7 +103,7 @@ let BuildCheckRow = (props) => {
var datafieldname = xpath.select("//@datafieldname", doc);
const isRequiredField = jsonpath({
path:
"$..value[?(@.LogicalName=='" +
"$..value[?(@ && @.LogicalName=='" +
datafieldname[0].value +
"')]",
json: mandatoryFieldsData,
+1 -1
View File
@@ -136,7 +136,7 @@ let BuildCheckSection = (props) => {
let labelTrans =
router.locale == "cy"
? jsonpath({
path: '$..[?(@.value=="' + label + '")].value_cy',
path: '$..[?(@ && @.value=="' + label + '")].value_cy',
json: formObj,
eval: true,
})
+1 -1
View File
@@ -111,7 +111,7 @@ export default function BuildRow(props) {
dateEnd = !_.isEmpty(dateEnd) && dateEnd[0].value;
//const isRequiredField = jsonpath({path:
// "$..value[?(@.LogicalName=='" +
// "$..value[?(@ && @.LogicalName=='" +
// datafieldname[0].value +
// "')]",
// mandatoryFieldsData
+2 -2
View File
@@ -67,7 +67,7 @@ const RenderLPAList = ({
{router.locale == "cy"
? jsonpath({
path:
'$..[?(@.value=="' +
'$..[?(@ && @.value=="' +
optionsObj[key].name +
'")].value_cy',
json: transLookup,
@@ -151,7 +151,7 @@ const RenderAppealTypeList = ({
: router.locale == "cy"
? jsonpath({
path:
'$..[?(@.value=="' +
'$..[?(@ && @.value=="' +
optionsObj[key].value +
'")].value_cy',
json: transLookup,