Fixes route of most played songs in home (#434).

This commit is contained in:
lymnyx 2024-02-04 02:27:26 +01:00
parent 1fb7290603
commit 69cb63a8b0

View File

@ -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: (