Skip to content

Commit

Permalink
Merge pull request #204 from Wikimedia-Austria/workflows-fix
Browse files Browse the repository at this point in the history
Workflows fix
  • Loading branch information
reiterbene authored Sep 17, 2024
2 parents 44df3e6 + 83c97c2 commit 0827758
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/autodeploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- run: yarn
- run: yarn build
- uses: easingthemes/ssh-deploy@main
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- run: yarn
- run: yarn build
- uses: actions/upload-artifact@v2.2.4
- uses: actions/upload-artifact@v4
with:
path: build/
4 changes: 2 additions & 2 deletions src/components/Dashboard/Sidebar/SearchBar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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));
};

Expand Down Expand Up @@ -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) => (
Expand Down

0 comments on commit 0827758

Please sign in to comment.