From ed3e91086031171f3ab6f045f0bb962e46a8a034 Mon Sep 17 00:00:00 2001 From: Brad Beattie Date: Wed, 18 Oct 2023 10:10:35 -0700 Subject: [PATCH] Update search.tsx --- src/apps/stable/routes/search.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/apps/stable/routes/search.tsx b/src/apps/stable/routes/search.tsx index c9285f6075..10583c381e 100644 --- a/src/apps/stable/routes/search.tsx +++ b/src/apps/stable/routes/search.tsx @@ -11,6 +11,7 @@ import globalize from '../../../scripts/globalize'; const Search: FunctionComponent = () => { const [ query, setQuery ] = useState(); const [ searchParams ] = useSearchParams(); + if (!query && searchParams.get('q')) setQuery(searchParams.get('q') || ''); return (