From 23cb2418b38abb446187f5ea9140db81b455cafb Mon Sep 17 00:00:00 2001 From: Jessica McInchak Date: Fri, 26 Apr 2024 13:06:47 +0200 Subject: [PATCH] account for PAO_TEXT --- .../src/@planx/components/FindProperty/Public/Autocomplete.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/editor.planx.uk/src/@planx/components/FindProperty/Public/Autocomplete.tsx b/editor.planx.uk/src/@planx/components/FindProperty/Public/Autocomplete.tsx index 873f617383..9dc263a464 100644 --- a/editor.planx.uk/src/@planx/components/FindProperty/Public/Autocomplete.tsx +++ b/editor.planx.uk/src/@planx/components/FindProperty/Public/Autocomplete.tsx @@ -83,9 +83,10 @@ export default function PickOSAddress(props: PickOSAddressProps): FCReturn { pao: [ selectedAddress.PAO_START_NUMBER, selectedAddress.PAO_START_SUFFIX, + selectedAddress.PAO_TEXT, // populated in cases of building name only, no street number ] .filter(Boolean) - .join(""), // docs reference PAO_TEXT, but not found in response so roll our own + .join(""), street: selectedAddress.STREET_DESCRIPTION, town: selectedAddress.TOWN_NAME, postcode: selectedAddress.POSTCODE_LOCATOR,