Merge pull request #1112 from bookwyrm-social/search-null-state

Fixes search null state view
This commit is contained in:
Mouse Reeve
2021-05-20 16:49:46 -07:00
committed by GitHub
2 changed files with 12 additions and 1 deletions

View File

@ -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 = {