1
0
Fork 0
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:
Brad Beattie 2023-10-18 10:10:35 -07:00 committed by Bill Thornton
parent d9d6ca7aca
commit ed3e910860

View file

@ -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