Skip to content

Commit

Permalink
search: fix Photon adress without street (#102)
Browse files Browse the repository at this point in the history
eg. search for "Okna 13"
  • Loading branch information
kudlav authored Jun 23, 2022
1 parent 5541fa5 commit 8125f51
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/SearchBox/renderOptionFactory.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,10 @@ const getAdditionalText = (props) => {
export const buildPhotonAddress = ({
place,
street,
city,
housenumber: hnum,
streetnumber: snum,
}) => join(street ?? place, ' ', hnum ? hnum.replace(' ', '/') : snum);
}) => join(street ?? place ?? city, ' ', hnum ? hnum.replace(' ', '/') : snum);

export const renderOptionFactory = (inputValue) => (option) => {
const { properties, geometry } = option;
Expand Down

1 comment on commit 8125f51

@vercel
Copy link

@vercel vercel bot commented on 8125f51 Jun 23, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

osmapp – ./

osmapp.org
osmapp-zbycz.vercel.app
osmapp-git-master-zbycz.vercel.app
osmapp.vercel.app

Please sign in to comment.