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 filteredData = useSearchQuery(
searchQuery,
folderData?.id ? folderData?.child : indexData?.child,
['title', 'artist', 'album', 'year', 'genre', 'path']
);
const filteredData = useSearchQuery(searchQuery, folderData?.id ? folderData?.child : indexData, [
'name',
'title',
'artist',
'album',
'year',
'genre',
'path',
]);
useEffect(() => {
if (query.get('folderId') !== 'null') {

Loading…
Cancel
Save