Skip to content

Commit

Permalink
[SDESK-7064] fix: Unable to get locaion name for houses
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkLark86 committed Oct 3, 2023
1 parent 6588fee commit 4691951
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/utils/locations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,11 @@ export function convertNominatimToLocation(item: INominatimItem): Partial<ILocat
},
};

location.name = item.namedetails.name ??
location.name = item.namedetails?.name ??
location.address.line[0];

location.translations = {
name: item.namedetails,
name: item.namedetails ?? {},
};

if (item.address[item.class]) {
Expand Down

0 comments on commit 4691951

Please sign in to comment.