uodated queries to sort deep recursion
This commit is contained in:
@@ -97,7 +97,7 @@ const SearchResults = (props) => {
|
||||
const isWatchedCase = (whichIncident) => {
|
||||
let isWatched = jsonpath({
|
||||
path:
|
||||
"$..value[?(@._pinswg_watchedcase_value=='" +
|
||||
"$..value[?(@ && @._pinswg_watchedcase_value=='" +
|
||||
whichIncident +
|
||||
"')]",
|
||||
json: watchedCases,
|
||||
@@ -247,7 +247,7 @@ const SearchResults = (props) => {
|
||||
resultsArrPaged.map((item, key) => {
|
||||
let detailsObj = jsonpath({
|
||||
path:
|
||||
'$..value[?(@.pinswg_name=="' +
|
||||
'$..value[?(@ && @.pinswg_name=="' +
|
||||
item.pinswg_name +
|
||||
'")]',
|
||||
|
||||
@@ -462,7 +462,7 @@ const SearchResults = (props) => {
|
||||
? router.locale == "cy"
|
||||
? jsonpath({
|
||||
path:
|
||||
'$..[?(@.value=="' +
|
||||
'$..[?(@ && @.value=="' +
|
||||
item[
|
||||
"_pinswg_localplanningauthority_value@OData.Community.Display.V1.FormattedValue"
|
||||
] +
|
||||
@@ -480,7 +480,7 @@ const SearchResults = (props) => {
|
||||
? router.locale == "cy"
|
||||
? jsonpath({
|
||||
path:
|
||||
'$..[?(@.value=="' +
|
||||
'$..[?(@ && @.value=="' +
|
||||
item[
|
||||
"_pinswg_associatedlpa_value@OData.Community.Display.V1.FormattedValue"
|
||||
] +
|
||||
@@ -503,7 +503,7 @@ const SearchResults = (props) => {
|
||||
{router.locale == "cy"
|
||||
? jsonpath({
|
||||
path:
|
||||
'$..[?(@.value=="' +
|
||||
'$..[?(@ && @.value=="' +
|
||||
item[
|
||||
"pinswg_appealType"
|
||||
] +
|
||||
@@ -525,7 +525,7 @@ const SearchResults = (props) => {
|
||||
{router.locale == "cy"
|
||||
? jsonpath({
|
||||
path:
|
||||
'$..[?(@.value=="' +
|
||||
'$..[?(@ && @.value=="' +
|
||||
item[
|
||||
"statuscode@OData.Community.Display.V1.FormattedValue"
|
||||
] +
|
||||
|
||||
Reference in New Issue
Block a user