Skip to content

Commit

Permalink
VACMS 19172 - fixes crash on FL for VA Health with empty array addres…
Browse files Browse the repository at this point in the history
…ses (#31915)
  • Loading branch information
eselkin committed Sep 13, 2024
1 parent 4406a03 commit dddda59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/applications/facility-locator/utils/facilityAddress.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export function buildAddressArray(location, titleCaseText = false) {

return [];
}
if (location && location.attributes) {
if (location?.attributes?.address?.physical) {
const {
address: { physical: address },
} = location.attributes;
Expand Down

0 comments on commit dddda59

Please sign in to comment.