diff --git a/source/frontend/src/components/propertySelector/map/PropertyMapSelectorSubForm.tsx b/source/frontend/src/components/propertySelector/map/PropertyMapSelectorSubForm.tsx index 9943f9d137..c559d98371 100644 --- a/source/frontend/src/components/propertySelector/map/PropertyMapSelectorSubForm.tsx +++ b/source/frontend/src/components/propertySelector/map/PropertyMapSelectorSubForm.tsx @@ -18,9 +18,7 @@ export const PropertyMapSelectorSubForm: React.FunctionComponent< const pid = selectedMapProperty?.pid; const pin = selectedMapProperty?.pin; const planNumber = selectedMapProperty?.planNumber; - const legalDescription = - selectedProperty?.pimsFeature?.properties?.LAND_LEGAL_DESCRIPTION ?? - selectedProperty?.parcelFeature?.properties?.LEGAL_DESCRIPTION; + const legalDescription = selectedMapProperty?.legalDescription; const address = selectedMapProperty?.address; const region = selectedMapProperty?.region; const regionName = selectedMapProperty?.regionName; diff --git a/source/frontend/src/features/mapSideBar/shared/models.ts b/source/frontend/src/features/mapSideBar/shared/models.ts index adfc8b1073..4e36a0d369 100644 --- a/source/frontend/src/features/mapSideBar/shared/models.ts +++ b/source/frontend/src/features/mapSideBar/shared/models.ts @@ -152,7 +152,10 @@ export class PropertyForm { ? enumFromValue(model?.pimsFeature?.properties?.PROPERTY_AREA_UNIT_TYPE_CODE, AreaUnitTypes) : AreaUnitTypes.SquareMeters, isRetired: model?.pimsFeature?.properties?.IS_RETIRED ?? false, - legalDescription: model?.pimsFeature?.properties?.LAND_LEGAL_DESCRIPTION ?? '', + legalDescription: + model?.pimsFeature?.properties?.LAND_LEGAL_DESCRIPTION ?? + model?.parcelFeature?.properties?.LEGAL_DESCRIPTION ?? + '', }); } diff --git a/source/frontend/src/utils/mapPropertyUtils.ts b/source/frontend/src/utils/mapPropertyUtils.ts index 0462aefa7b..61c4f4d42d 100644 --- a/source/frontend/src/utils/mapPropertyUtils.ts +++ b/source/frontend/src/utils/mapPropertyUtils.ts @@ -232,7 +232,10 @@ export function featuresetToMapProperty( parcelFeature?.properties?.PLAN_NUMBER ?? undefined, address: address ?? formattedAddress ?? undefined, - legalDescription: parcelFeature?.properties?.LEGAL_DESCRIPTION ?? undefined, + legalDescription: + pimsFeature?.properties?.LAND_LEGAL_DESCRIPTION ?? + parcelFeature?.properties?.LEGAL_DESCRIPTION ?? + undefined, region: isNumber(regionFeature?.properties?.REGION_NUMBER) ? regionFeature?.properties?.REGION_NUMBER : RegionCodes.Unknown,