-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fixed issue #130, so people can select from browse by agency multiple time #131
Conversation
…tiple times and browse projects will only filter by that agency selected each time
Don't review this yet. Just discovered a bug when I select |
Ready for review now |
@@ -25,21 +25,21 @@ const mapDispatchToProps = dispatch => { | |||
const value = normalize(event.target.value) | |||
if (value !== 'browse by agency') { | |||
let url |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let url = `/browse-projects?agencies=${value}&page=1&size=10&sort=data_quality`
size: 10, | ||
sort: 'data_quality', | ||
filters: [] | ||
} | ||
if (value === 'all') { | ||
url = '/browse-projects?page=1&size=10&sort=data_quality' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
url = url.split(`agencies=${value}&`).join('')
Hello @DanielJDufour, Your changes that enough, but I suggest simple updates (you can see above). |
A similar PR may already be submitted!
Please search among the Pull request before creating one.
Thanks for submitting a pull request! Please provide enough information so that others can review your pull request:
For more information, see the
CONTRIBUTING
guide.Summary
This PR fixes/implements the following bugs/features
Explain the motivation for making this change. What existing problem does the pull request solve?
Issue #130
Test plan (required)
Demonstrate the code is solid. Example: The exact commands you ran and their output, screenshots / videos if the pull request changes UI.
Manually tested and also added to pre-deploy testing checklist
Code formatting
Closing issues
Fixes #130