Separate genre page's query from others

- Fixes error on airsonic advanced
This commit is contained in:
jeffvli
2021-11-01 09:40:39 -07:00
committed by Jeff
parent 66094283c9
commit ffb6034331

View File

@@ -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');
});