From bea82410a5c8647b3d8b59eb25a037b50dfa7790 Mon Sep 17 00:00:00 2001 From: jeffvli Date: Thu, 28 Oct 2021 13:00:08 -0700 Subject: [PATCH] Fix root folder list search --- src/components/library/FolderList.tsx | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/components/library/FolderList.tsx b/src/components/library/FolderList.tsx index afc3b47..db08fe7 100644 --- a/src/components/library/FolderList.tsx +++ b/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') {