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

Autocomplete does not work before 6 characters are typed #74

Open
YassineALLAL opened this issue Sep 19, 2022 · 0 comments
Open

Autocomplete does not work before 6 characters are typed #74

YassineALLAL opened this issue Sep 19, 2022 · 0 comments

Comments

@YassineALLAL
Copy link

The twofishes prefix index doesn't seem to be correctly built causing the autocomplete to not work untill 6 characters.

r => bestWoeTypes.contains(r.woeTypeOrThrow) never matches because r.woeTypeOrThrow is an enum while bestWoeTypes is a list of integers (enum ordinals)

val (woeMatches, woeMismatches) = records.partition(r => bestWoeTypes.contains(r.woeTypeOrThrow))

A fix would be to remove the map(_.getValue) mapping and keep the enum type.

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

No branches or pull requests

1 participant