Not searching when home page search screen is empty.

This commit is contained in:
Roland 2022-01-31 09:01:54 -07:00
parent 8170313dd7
commit 72df7f7edf
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93
2 changed files with 5 additions and 3 deletions

View file

@ -37,8 +37,10 @@ const useSearch = () => {
}
useEffect(() => {
localSearchArchives(searchStr);
localSearchVideos(searchStr)
if (searchStr) {
localSearchArchives(searchStr);
localSearchVideos(searchStr)
}
}, [searchStr]);
return {searchStr, setSearchStr, archives, videos}

View file

@ -1,4 +1,4 @@
__version__ = '0.1.4-beta'
__version__ = '0.2.1-beta'
import subprocess