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
@@ -146,13 +146,15 @@ let AdvancedSearch = (props) => {
{/* {optionsObj[key].name} */}
{router.locale == "cy"
? jsonpath(
'$..[?(@.value=="' +
? jsonpath({
path:
'$..[?(@.value=="' +
optionsObj[key]
.name +
'")].value_cy',
transLookup
)
json: transLookup,
sandbox: {},
})
: optionsObj[key].name ||
t(
"case:summary-no-date-entered-label"
@@ -249,13 +251,15 @@ let AdvancedSearch = (props) => {
)
? ""
: router.locale == "cy"
? jsonpath(
'$..[?(@.value=="' +
? jsonpath({
path:
'$..[?(@.value=="' +
optionsObj[key]
.value +
'")].value_cy',
transLookup
)
json: transLookup,
sandbox: {},
})
: optionsObj[key].value ||
t(
"case:summary-no-date-entered-label"