mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Update search.tsx
This commit is contained in:
parent
d9d6ca7aca
commit
ed3e910860
1 changed files with 1 additions and 0 deletions
|
@ -11,6 +11,7 @@ import globalize from '../../../scripts/globalize';
|
|||
const Search: FunctionComponent = () => {
|
||||
const [ query, setQuery ] = useState<string>();
|
||||
const [ searchParams ] = useSearchParams();
|
||||
if (!query && searchParams.get('q')) setQuery(searchParams.get('q') || '');
|
||||
|
||||
return (
|
||||
<Page
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue