update jsonpath for csp fix

This commit is contained in:
2025-04-15 12:59:27 +01:00
parent 1caab59c05
commit 05f791e6a8
57 changed files with 1585 additions and 1041 deletions
+12 -8
View File
@@ -57,12 +57,14 @@ const RepresentationList = (props) => {
</div>
{representationsArr.map((item, key) => {
let detailsObj = jsonpath(
"$..[?(@.pinswg_representationsid=='" +
let detailsObj = jsonpath({
path:
"$..[?(@.pinswg_representationsid=='" +
incidentid +
"')]",
item
);
json: item,
sandbox: {},
});
detailsObj = item;
console.log(detailsObj);
@@ -87,14 +89,16 @@ const RepresentationList = (props) => {
</span>
{router.locale == "cy"
? jsonpath(
'$..[?(@.value=="' +
? jsonpath({
path:
'$..[?(@.value=="' +
detailsObj[
"pinswg_isharedocumentlocations@OData.Community.Display.V1.FormattedValue"
] +
'")].value_cy',
transLookup
)
json: transLookup,
sanbox: {},
})
: detailsObj[
"pinswg_isharedocumentlocations@OData.Community.Display.V1.FormattedValue"
] ||