From ee2751a642ce7207db67d1caf5d8da8a43fe147f Mon Sep 17 00:00:00 2001 From: robbond Date: Thu, 9 Apr 2026 16:34:41 +0100 Subject: [PATCH] catch fix in view all --- components/myportal/viewall.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/components/myportal/viewall.js b/components/myportal/viewall.js index 6532be5a..0affa007 100644 --- a/components/myportal/viewall.js +++ b/components/myportal/viewall.js @@ -523,9 +523,12 @@ const ViewAllResults = (props) => { ? jsonpath({ path: '$..[?(@ && @.value=="' + - searchDetailsObj[key].value[0][ - "_pinswg_localplanningauthority_value@OData.Community.Display.V1.FormattedValuee" - ] + + (searchDetailsObj[key][ + "_pinswg_localplanningauthority_value@OData.Community.Display.V1.FormattedValue" + ] || + searchDetailsObj[key]?.value[0][ + "_pinswg_localplanningauthority_value@OData.Community.Display.V1.FormattedValue" + ]) + '")].value_cy', json: transLookup, eval: true @@ -544,7 +547,7 @@ const ViewAllResults = (props) => { path: '$..[?(@ && @.value=="' + resultItem[ - "_pinswg_localplanningauthority_value@OData.Community.Display.V1.FormattedValuee" + "_pinswg_localplanningauthority_value@OData.Community.Display.V1.FormattedValue" ] + '")].value_cy', json: transLookup,