From a8a8398cf8988cea8716dece7b2ebb47edb47a76 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Thu, 20 May 2021 16:34:32 -0700 Subject: [PATCH] Fixes search null state view --- bookwyrm/views/search.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bookwyrm/views/search.py b/bookwyrm/views/search.py index 558c2039..e7b538e4 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 = {