Browse Source

Fix root folder list search

master
jeffvli 3 years ago
committed by Jeff
parent
commit
bea82410a5
  1. 14
      src/components/library/FolderList.tsx

14
src/components/library/FolderList.tsx

@ -56,11 +56,15 @@ const FolderList = () => {
); );
const [searchQuery, setSearchQuery] = useState(''); const [searchQuery, setSearchQuery] = useState('');
const filteredData = useSearchQuery( const filteredData = useSearchQuery(searchQuery, folderData?.id ? folderData?.child : indexData, [
searchQuery, 'name',
folderData?.id ? folderData?.child : indexData?.child, 'title',
['title', 'artist', 'album', 'year', 'genre', 'path'] 'artist',
); 'album',
'year',
'genre',
'path',
]);
useEffect(() => { useEffect(() => {
if (query.get('folderId') !== 'null') { if (query.get('folderId') !== 'null') {

Loading…
Cancel
Save