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:15:04 -07:00 committed by Bill Thornton
parent ed3e910860
commit 799fbd0965

View file

@ -11,7 +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') || '');
if (!query && searchParams.get('query')) setQuery(searchParams.get('query') || '');
return (
<Page