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
ed3e910860
commit
799fbd0965
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ import globalize from '../../../scripts/globalize';
|
||||||
const Search: FunctionComponent = () => {
|
const Search: FunctionComponent = () => {
|
||||||
const [ query, setQuery ] = useState<string>();
|
const [ query, setQuery ] = useState<string>();
|
||||||
const [ searchParams ] = useSearchParams();
|
const [ searchParams ] = useSearchParams();
|
||||||
if (!query && searchParams.get('q')) setQuery(searchParams.get('q') || '');
|
if (!query && searchParams.get('query')) setQuery(searchParams.get('query') || '');
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Page
|
<Page
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue