Skip to content

Commit

Permalink
fixes Warth (Vorarlberg) != Warth (Niederösterreich) #200
Browse files Browse the repository at this point in the history
reiterbene committed Sep 17, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent a3c1d87 commit 83c97c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Dashboard/Sidebar/SearchBar.jsx
Original file line number Diff line number Diff line change
@@ -25,7 +25,7 @@ const SearchBar = () => {
categoriesLoading || searchLoading || placeLoading || !mapLoaded;

const onPlaceSelect = (place) => {
const selectedPlace = searchData.find((p) => p.get("place_name") === place);
const selectedPlace = searchData.find((p) => p.get("id") === place);
dispatch(selectPlace(selectedPlace));
};

@@ -60,7 +60,7 @@ const SearchBar = () => {
{(placeholder) => (
<Autocomplete
inputProps={{ placeholder, accessKey: "f" }}
getItemValue={(item) => item.place_name}
getItemValue={(item) => item.id}
items={searchData.toJS()}
renderItem={renderItem}
renderMenu={(items) => (

0 comments on commit 83c97c2

Please sign in to comment.