Merge pull request #489 from lymnyx/mostplayed-bugfix
[bugfix] Fixes route of most played songs on home page
This commit is contained in:
commit
6520a105d2
1 changed files with 20 additions and 2 deletions
|
@ -251,7 +251,16 @@ const HomeRoute = () => {
|
||||||
property: 'name',
|
property: 'name',
|
||||||
route: {
|
route: {
|
||||||
route: AppRoute.LIBRARY_ALBUMS_DETAIL,
|
route: AppRoute.LIBRARY_ALBUMS_DETAIL,
|
||||||
slugs: [{ idProperty: 'id', slugProperty: 'albumId' }],
|
slugs: [
|
||||||
|
{
|
||||||
|
idProperty:
|
||||||
|
server?.type === ServerType.JELLYFIN &&
|
||||||
|
carousel.itemType === LibraryItem.SONG
|
||||||
|
? 'albumId'
|
||||||
|
: 'id',
|
||||||
|
slugProperty: 'albumId',
|
||||||
|
},
|
||||||
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -272,7 +281,16 @@ const HomeRoute = () => {
|
||||||
itemType={carousel.itemType}
|
itemType={carousel.itemType}
|
||||||
route={{
|
route={{
|
||||||
route: AppRoute.LIBRARY_ALBUMS_DETAIL,
|
route: AppRoute.LIBRARY_ALBUMS_DETAIL,
|
||||||
slugs: [{ idProperty: 'id', slugProperty: 'albumId' }],
|
slugs: [
|
||||||
|
{
|
||||||
|
idProperty:
|
||||||
|
server?.type === ServerType.JELLYFIN &&
|
||||||
|
carousel.itemType === LibraryItem.SONG
|
||||||
|
? 'albumId'
|
||||||
|
: 'id',
|
||||||
|
slugProperty: 'albumId',
|
||||||
|
},
|
||||||
|
],
|
||||||
}}
|
}}
|
||||||
title={{
|
title={{
|
||||||
label: (
|
label: (
|
||||||
|
|
Reference in a new issue