update jsonpath for csp fix
This commit is contained in:
@@ -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"
|
||||
] ||
|
||||
|
||||
Reference in New Issue
Block a user