Merge pull request #1112 from bookwyrm-social/search-null-state
Fixes search null state view
This commit is contained in:
commit
9933b888f9
2 changed files with 12 additions and 1 deletions
|
@ -36,7 +36,7 @@ class Search(View):
|
|||
)
|
||||
return JsonResponse([r.json() for r in book_results], safe=False)
|
||||
|
||||
if not search_type:
|
||||
if query and not search_type:
|
||||
search_type = "user" if "@" in query else "book"
|
||||
|
||||
endpoints = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue