Merge pull request #489 from lymnyx/mostplayed-bugfix

[bugfix] Fixes route of most played songs on home page
This commit is contained in:
Kendall Garner 2024-02-04 02:29:16 +00:00 committed by GitHub
commit 6520a105d2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -251,7 +251,16 @@ const HomeRoute = () => {
property: 'name',
route: {
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}
route={{
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={{
label: (