Skip to content
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

Footer active filters #1118

Merged
merged 3 commits into from
May 25, 2020
Merged

Conversation

rleir
Copy link
Contributor

@rleir rleir commented May 10, 2020

Description of proposed changes

What is the goal of this pull request? What does this pull request change?
Condition 'Object.keys(this.props.activeFilters)' is always true because it evaluates to an array. Did you mean checking 'Object.keys(this.props.activeFilters).length' instead?

Related issue(s)

Fixes #
Related to #
I doubt that this code change has any effect on the page, other than a minimal performance change.
My goal is just a trivial 'clean-up': to correct the semantics of the code so it is more readable and does not throw a warning in Deepscan. Please ignore this PR, it is very low priority.

Testing

What steps should be taken to test the changes you've proposed?
If you added or changed behavior in the codebase, did you update the tests, or do you need help with this?
Sorry, I have not tested other than re-running Deepscan.

Thank you for contributing to Nextstrain!

…use it evaluates to an array. Did you mean checking 'Object.keys(this.props.activeFilters).length' instead?
@jameshadfield jameshadfield temporarily deployed to auspice-footeractivefil-jbapgo May 13, 2020 06:14 Inactive
@jameshadfield jameshadfield temporarily deployed to auspice-footeractivefil-gci4hm May 25, 2020 03:49 Inactive
Copy link
Member

@jameshadfield jameshadfield left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants