Skip to content

Commit

Permalink
Merge pull request #735 from OSMCha/fix/reasons-tags-pagination
Browse files Browse the repository at this point in the history
Loads all tags and reasons to avoid errors in Filters
  • Loading branch information
willemarcel authored Jun 4, 2024
2 parents 0c87581 + 69e4e6f commit c0d3152
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

Log of changes since the 2.0 version

### 0.88.1
- Loads all tags and reasons to avoid errors

### 0.88.0
- Enable oauth2 authorization (#733)

### 0.87.5
- Update changeset-map version to 1.12.1

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.88.0",
"version": "0.88.1",
"license": "ISC",
"engines": {
"node": ">=7.0"
Expand Down
2 changes: 1 addition & 1 deletion src/components/filters/multi_select.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class MultiSelect extends React.PureComponent {
};
getAsyncOptions = () => {
if (!this.props.dataURL) return;
return fetch(`${API_URL}/${this.props.dataURL}/`, {
return fetch(`${API_URL}/${this.props.dataURL}/?page_size=200`, {
method: 'GET',
headers: {
'Content-Type': 'application/json',
Expand Down
4 changes: 2 additions & 2 deletions src/network/reasons_tags.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { API_URL } from '../config';
import { handleErrors } from './aoi';

export function fetchReasons(token: ?string) {
return fetch(`${API_URL}/suspicion-reasons/`, {
return fetch(`${API_URL}/suspicion-reasons/?page_size=200`, {
method: 'GET',
headers: {
'Content-Type': 'application/json',
Expand All @@ -16,7 +16,7 @@ export function fetchReasons(token: ?string) {
}

export function fetchTags(token: ?string) {
return fetch(`${API_URL}/tags/`, {
return fetch(`${API_URL}/tags/?page_size=200`, {
method: 'GET',
headers: {
'Content-Type': 'application/json',
Expand Down

0 comments on commit c0d3152

Please sign in to comment.