mirror of
https://github.com/jeffvli/sonixd.git
synced 2026-04-29 10:42:40 -04:00
Separate genre page's query from others
- Fixes error on airsonic advanced
This commit is contained in:
@@ -22,7 +22,7 @@ const GenreList = () => {
|
||||
const history = useHistory();
|
||||
const config = useAppSelector((state) => state.config);
|
||||
const album = useAppSelector((state) => state.album);
|
||||
const { isLoading, isError, data: genres, error }: any = useQuery(['genreList'], async () => {
|
||||
const { isLoading, isError, data: genres, error }: any = useQuery(['genrePageList'], async () => {
|
||||
const res = await getGenres();
|
||||
return _.orderBy(res, 'songCount', 'desc');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user