uodated queries to sort deep recursion

This commit is contained in:
2025-04-16 08:44:45 +01:00
parent 420501dbf1
commit d882e65071
54 changed files with 270 additions and 267 deletions
+7 -7
View File
@@ -158,7 +158,7 @@ const DocumentDetails = (props) => {
<option value="all" key="00">
{router.locale == "cy"
? jsonpath({
path: '$..[?(@.value=="All")].value_cy',
path: '$..[?(@ && @.value=="All")].value_cy',
json: transLookup,
eval: true,
})
@@ -175,7 +175,7 @@ const DocumentDetails = (props) => {
{router.locale == "cy"
? jsonpath({
path:
'$..[?(@.value=="' +
'$..[?(@ && @.value=="' +
item.pinswg_isharedocumentlocationsLabel +
'")].value_cy',
json: transLookup,
@@ -322,7 +322,7 @@ const DocumentDetails = (props) => {
documentDetailsArr.map((item, key) => {
let detailsObj = jsonpath({
path:
"$..[?(@._pinswg_documentids_value=='" +
"$..[?(@ && @._pinswg_documentids_value=='" +
incidentid +
"')]",
json: item,
@@ -410,7 +410,7 @@ const DocumentDetails = (props) => {
{router.locale == "cy"
? jsonpath({
path:
'$..[?(@.value=="' +
'$..[?(@ && @.value=="' +
detailsObj[
"pinswg_isharedocumentlocations@OData.Community.Display.V1.FormattedValue"
] +
@@ -575,7 +575,7 @@ const DocumentDetails = (props) => {
{router.locale == "cy"
? jsonpath({
path:
'$..[?(@.value=="' +
'$..[?(@ && @.value=="' +
item.pinswg_isharedocumentlocationsLabel +
'")].value_cy',
jsonL: transLookup,
@@ -731,7 +731,7 @@ const DocumentDetails = (props) => {
documentDetailsArr.map((item, key) => {
let detailsObj = jsonpath({
path:
"$..[?(@._pinswg_documentids_value=='" +
"$..[?(@ && @._pinswg_documentids_value=='" +
incidentid +
"')]",
json: item,
@@ -824,7 +824,7 @@ const DocumentDetails = (props) => {
{router.locale == "cy"
? jsonpath({
path:
'$..[?(@.value=="' +
'$..[?(@ && @.value=="' +
detailsObj[
"pinswg_isharedocumentlocations@OData.Community.Display.V1.FormattedValue"
] +