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