changes sandbox: {} to eval: true, caused errors in evaluated queries

This commit is contained in:
2025-04-15 17:25:14 +01:00
parent 854530e605
commit 87f0dcd811
55 changed files with 262 additions and 262 deletions
+5 -5
View File
@@ -1342,7 +1342,7 @@ const RenderPickList = ({
var dropdownObj = jsonpath({
path: "$..value[?(@.LogicalName=='" + datafieldname + "')]..Options",
json: picklistData,
sandbox: {},
eval: true,
});
dropdownObj = dropdownObj[0];
@@ -1720,7 +1720,7 @@ export const FieldsTranslations = (label) => {
let formObj = jsonpath({
path: "$['" + appealtypes + "']",
json: fieldLookup,
sandbox: {},
eval: true,
});
let labelTrans =
@@ -1728,7 +1728,7 @@ export const FieldsTranslations = (label) => {
? jsonpath({
path: '$..[?(@.value=="' + label + '")].value_cy',
json: formObj,
sandbox: {},
eval: true,
})[0]
: label;
@@ -1747,7 +1747,7 @@ const PickListTranslations = (optionValue) => {
? jsonpath({
path: '$..[?(@.value=="' + optionValue + '")].value_cy',
json: pickListLookup,
sandbox: {},
eval: true,
})
: optionValue;
//console.log(optionTrans, optionValue);
@@ -1947,7 +1947,7 @@ const RenderFileUpload = (field) => {
const blobList = jsonpath({
path: "$..[?(@.documentType=='" + field.documentTypeCode + "')]",
json: filelistObj,
sandbox: {},
eval: true,
});
//const blobList = filelistObj;