Better way to do this query?
I have a simple search action for an autocomplete, and I want to have it skip the filter if the search term is
If not, no problem, this works fine.
"" in order to just return the top sorted options. I have a pretty simple solution, but was wondering if there's a cleaner/more idiomatic way of doing it:If not, no problem, this works fine.
