From e4f60fbaa3306b1c741ea1ea076d823887440b42 Mon Sep 17 00:00:00 2001 From: Daniel O'Connell Date: Sat, 7 Oct 2023 15:12:13 +0200 Subject: [PATCH] fix searchbar --- web/src/components/searchbox.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/components/searchbox.tsx b/web/src/components/searchbox.tsx index f54470f..1e91c47 100644 --- a/web/src/components/searchbox.tsx +++ b/web/src/components/searchbox.tsx @@ -79,7 +79,7 @@ const SearchBoxInternal: React.FC<{ setLoading(true); const controller = new AbortController(); setController(controller); - search(query, "search", enable(controller), controller); + search(query, searchtype, enable(controller), controller); }; const cancelSearch = () => controller.abort(); @@ -119,7 +119,7 @@ const SearchBoxInternal: React.FC<{ // if without , submit the form (if it's not empty) if (e.key === "Enter" && !e.shiftKey) { e.preventDefault(); - runSearch(query, "search"); + runSearch(query, "search")(); } }} />