Skip to content

Commit

Permalink
Merge pull request #417 from bikehopper/graue/autocomplete-exact
Browse files Browse the repository at this point in the history
Fix bug: no autocomplete result for exact string
  • Loading branch information
abhumbla authored Jan 15, 2025
2 parents 9ced5ba + 2f3a396 commit 7c4ee2b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/SearchDropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,8 @@ const _searchDropdownSelector = createSelector(
![thisId, otherId].includes(
feat.properties.osm_type + feat.properties.osm_id,
) &&
![thisLocationText, otherLocationText].includes(describePlace(feat)),
!(thisLocation && thisLocationText === describePlace(feat)) &&
!(otherLocation && otherLocationText === describePlace(feat)),
)
.slice(0, 8);

Expand Down

0 comments on commit 7c4ee2b

Please sign in to comment.