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

Set selected filter initially to all to match picker option #84

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

KaiOelfke
Copy link

The status filter picker is initialized with an empty string "" currently, but this is not an option in the picker. So SwiftUI complains with a fault log:

Picker: the selection "" is invalid and does not have an associated tag, this will give undefined results.

This PR initializes this with "all", which is always available. Other ways could be to just default the State to "all" and to remove the argument from the auto generated init. Or make it user configurable. But I don't have time for this so this is a quick fix.

Bildschirmfoto 2024-03-22 um 18 39 24

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.

1 participant