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
+3 -3
View File
@@ -66,7 +66,7 @@ let BuildCheckRow = (props) => {
let formObj = jsonpath({
path: "$['" + appealtypes + "']",
json: fieldLookup,
sandbox: {},
eval: true,
});
let labelTrans =
@@ -74,7 +74,7 @@ let BuildCheckRow = (props) => {
? jsonpath({
path: '$..[?(@.value=="' + label + '")].value_cy',
json: formObj,
sandbox: {},
eval: true,
})
: label;
return labelTrans;
@@ -107,7 +107,7 @@ let BuildCheckRow = (props) => {
datafieldname[0].value +
"')]",
json: mandatoryFieldsData,
sandbox: {},
eval: true,
});
var documentTypeCode = xpath.select(
+2 -2
View File
@@ -130,7 +130,7 @@ let BuildCheckSection = (props) => {
let formObj = jsonpath({
path: "$['" + appealtypes + "']",
json: fieldLookup,
sandbox: {},
eval: true,
});
let labelTrans =
@@ -138,7 +138,7 @@ let BuildCheckSection = (props) => {
? jsonpath({
path: '$..[?(@.value=="' + label + '")].value_cy',
json: formObj,
sandbox: {},
eval: true,
})
: label;
return labelTrans;
+2 -2
View File
@@ -71,7 +71,7 @@ const RenderLPAList = ({
optionsObj[key].name +
'")].value_cy',
json: transLookup,
sandbox: {},
eval: true,
})
: optionsObj[key].name}
</option>
@@ -155,7 +155,7 @@ const RenderAppealTypeList = ({
optionsObj[key].value +
'")].value_cy',
json: transLookup,
sandbox: {},
eval: true,
})
: optionsObj[key].value}
</option>