Skip to content

fix: prevent default filters from getting overwritten #1757

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

Merged
merged 1 commit into from
Jan 23, 2025

Conversation

aravindparappil46
Copy link
Contributor

"Clear Filters" button was not unchecking selected filters because of a reference between settings and defaultSettings. i.e., whenever filters changed, the filter reasons in the defaultFilters object also mutated, which is not desirable.

Using the spread operator to get selected filters fixes this issue.

Video of bug:

Screen.Recording.2025-01-22.at.6.40.59.PM.mov

Clear Filters button was not unchecking selected filters because of a reference
between settings and defaultSettings. i.e., whenever filters changed, the filter reasons in the defaultFilters
object also changed, which is not desirable.

Using the spread operator to get selected filters fixes this issue
@setchy setchy added the bug Something isn't working label Jan 23, 2025
@setchy setchy added this to the Release 6.0.0 milestone Jan 23, 2025
@setchy
Copy link
Member

setchy commented Jan 23, 2025

Thanks @aravindparappil46, appreciate the fix 🛠️

@setchy setchy merged commit f38d3a8 into gitify-app:main Jan 23, 2025
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants