diff --git a/bookwyrm/views/search.py b/bookwyrm/views/search.py index 558c20391..e7b538e47 100644 --- a/bookwyrm/views/search.py +++ b/bookwyrm/views/search.py @@ -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 = {