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
+5 -4
View File
@@ -1340,7 +1340,8 @@ const RenderPickList = ({
let { t } = useTranslation();
var dropdownObj = jsonpath({
path: "$..value[?(@.LogicalName=='" + datafieldname + "')]..Options",
path:
"$..value[?(@ && @.LogicalName=='" + datafieldname + "')]..Options",
json: picklistData,
eval: true,
});
@@ -1726,7 +1727,7 @@ export const FieldsTranslations = (label) => {
let labelTrans =
router.locale == "cy"
? jsonpath({
path: '$..[?(@.value=="' + label + '")].value_cy',
path: '$..[?(@ && @.value=="' + label + '")].value_cy',
json: formObj,
eval: true,
})[0]
@@ -1745,7 +1746,7 @@ const PickListTranslations = (optionValue) => {
let optionTrans =
router.locale == "cy"
? jsonpath({
path: '$..[?(@.value=="' + optionValue + '")].value_cy',
path: '$..[?(@ && @.value=="' + optionValue + '")].value_cy',
json: pickListLookup,
eval: true,
})
@@ -1945,7 +1946,7 @@ const RenderFileUpload = (field) => {
const filelistObj = field.fileList || {};
const blobList = jsonpath({
path: "$..[?(@.documentType=='" + field.documentTypeCode + "')]",
path: "$..[?(@ && @.documentType=='" + field.documentTypeCode + "')]",
json: filelistObj,
eval: true,
});