uodated queries to sort deep recursion
This commit is contained in:
@@ -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,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user