uodated queries to sort deep recursion
This commit is contained in:
@@ -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"
|
||||
] +
|
||||
|
||||
Reference in New Issue
Block a user