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
+12 -12
View File
@@ -128,7 +128,7 @@ const ViewAllResults = (props) => {
: item.pinswg_title) +
'")]',
json: searchDetailsObj,
sandbox: {},
eval: true,
});
detailsObj = detailsObj[0];
@@ -484,7 +484,7 @@ const ViewAllResults = (props) => {
resultsArr[key].pinswg_lpaname +
'")].value_cy',
json: transLookup,
sandbox: {},
eval: true,
})
: resultsArr[key].pinswg_lpaname || "N/A"
: ""}
@@ -500,7 +500,7 @@ const ViewAllResults = (props) => {
] +
'")].value_cy',
json: transLookup,
sandbox: {},
eval: true,
})
: resultsArr[key][
"_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue"
@@ -518,7 +518,7 @@ const ViewAllResults = (props) => {
] +
'")].value_cy',
json: transLookup,
sandbox: {},
eval: true,
})
: currentView.viewKey == "myRepresentations"
? searchDetailsObj[key].value
@@ -538,7 +538,7 @@ const ViewAllResults = (props) => {
] +
'")].value_cy',
json: transLookup,
sandbox: {},
eval: true,
})
: resultsArr[key][
"_pinswg_localplanningauthority_value@OData.Community.Display.V1.FormattedValue"
@@ -556,7 +556,7 @@ const ViewAllResults = (props) => {
] +
'")].value_cy',
json: transLookup,
sandbox: {},
eval: true,
})}
</dd>
<dd className="govuk-summary-list__value govuk-!-font-size-16">
@@ -574,7 +574,7 @@ const ViewAllResults = (props) => {
).value +
'")].value_cy',
json: transLookup,
sandbox: {},
eval: true,
})
: getFormCollectionByID(
item.pinswg_appealcasetype
@@ -588,7 +588,7 @@ const ViewAllResults = (props) => {
] +
'")].value_cy',
json: transLookup,
sandbox: {},
eval: true,
})
: item[
"pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue"
@@ -607,7 +607,7 @@ const ViewAllResults = (props) => {
).value +
'")].value_cy',
json: transLookup,
sandbox: {},
eval: true,
})[0]
: getFormCollectionByID(
searchDetailsObj[key].appealType
@@ -633,7 +633,7 @@ const ViewAllResults = (props) => {
item.statuscode +
'")].value_cy',
json: transLookup,
sandbox: {},
eval: true,
})
: jsonpath({
path:
@@ -641,7 +641,7 @@ const ViewAllResults = (props) => {
item.statuscode +
'")].value',
json: transLookup,
sandbox: {},
eval: true,
}) || "N/A"
: currentView.viewKey == "myRepresentations"
? repRaisedDate(item.repfile_name) // ? router.locale == "cy"
@@ -675,7 +675,7 @@ const ViewAllResults = (props) => {
] +
'")].value_cy',
json: transLookup,
sandbox: {},
eval: true,
})
: item[
"statuscode@OData.Community.Display.V1.FormattedValue"