Skip to content

Commit

Permalink
Merge pull request #714 from OSMCha/fix/filters-reasons-tags
Browse files Browse the repository at this point in the history
Fix error when loading aois with tags and flags filters
  • Loading branch information
willemarcel authored Feb 21, 2024
2 parents 4f05de8 + 26dc999 commit 9925bee
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

Log of changes since the 2.0 version

### 0.87.3
- Fix error when loading AOIs with tags or flags filters

### 0.87.2
- Filter error in async Multiselect components of Filters page

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "osmcha-frontend",
"version": "0.87.2",
"version": "0.87.3",
"license": "ISC",
"engines": {
"node": ">=7.0"
Expand Down
10 changes: 4 additions & 6 deletions src/network/reasons_tags.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@ export function fetchReasons(token: ?string) {
}
})
.then(handleErrors)
.then(res => {
return res.json();
});
.then(res => res.json())
.then(res => res.results);
}

export function fetchTags(token: ?string) {
Expand All @@ -25,7 +24,6 @@ export function fetchTags(token: ?string) {
}
})
.then(handleErrors)
.then(res => {
return res.json();
});
.then(res => res.json())
.then(res => res.results);
}

0 comments on commit 9925bee

Please sign in to comment.