forked from mirrors/bookwyrm
Fixes search null state view
This commit is contained in:
parent
ab3fb4d555
commit
a8a8398cf8
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ class Search(View):
|
||||||
)
|
)
|
||||||
return JsonResponse([r.json() for r in book_results], safe=False)
|
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"
|
search_type = "user" if "@" in query else "book"
|
||||||
|
|
||||||
endpoints = {
|
endpoints = {
|
||||||
|
|
Loading…
Reference in a new issue