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
Clear searched keyword when it is deleted #879
Comments
ah yes that makes sense, i recently fixed one other issue with the keywords in search saving. This should be easy to implement |
@smilerz you changed this so that the generic facets api call resolves the pre existing facets (which is good), i think the best solution to this would be to filter the results ( |
I wouldn't do anything automatically honestly - adding code to detect if recipes have been loaded then removing missing keywords, then triggering a new recipe search seems like a lot of extra complexity to replace just manually removing the deleted keywords. Maybe some tweaks in recipe search to not filter on non-existent keywords/foods/etc. |
ok so i just tested it, it does already ignore keywords that do not exist but there seems to be an issue that you cannot remove it from the input unless you hit the "reset search" button. This can easily be tested by using |
OK, I see it now. We can switch those fields to computed fields and pass a filtered list (add a hidden attribute to pre-loaded terms) that only filteres when the length of recipes > 0 |
I imported recipes, and then deleted the import keyword. When returning to the search page, it was empty because it was still filtering with the deleted keyword. The keyword should be removed from current search parameters when it is deleted.
The text was updated successfully, but these errors were encountered: