changes sandbox: {} to eval: true, caused errors in evaluated queries
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user