|
@ -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') { |
|
|