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

🐛 fix: type mismatch in instantiating feature flag filter from query string #430

Merged
merged 2 commits into from
Jul 3, 2023

Conversation

deleteLater
Copy link
Contributor

This pull request addresses an issue in the feature flag index page that occurs when loading the page with a query string.

The query string is used to instantiate the feature flag filter, but the extracted values are treated as strings, causing type mismatch problems. For example, when the query string contains ?isArchived=false, the value of filter.isArchived is parsed as a string "false", so conditional checks like *ngIf="filter.isArchived" will evaluate to true, which is not the intended behavior.

@deleteLater deleteLater self-assigned this Jul 3, 2023
@deleteLater deleteLater added the bug Something isn't working label Jul 3, 2023
@deleteLater deleteLater marked this pull request as ready for review July 3, 2023 15:07
@deleteLater deleteLater merged commit 5980004 into main Jul 3, 2023
1 check passed
@deleteLater deleteLater deleted the fix/feature-flag-filter branch July 3, 2023 15:11
mucoban pushed a commit to mucoban/featbit that referenced this pull request Jul 12, 2023
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.

None yet

2 participants