Skip to content

Commit

Permalink
Fixes route of most played songs in home (#434).
Browse files Browse the repository at this point in the history
  • Loading branch information
lymnyx committed Feb 4, 2024
1 parent 1fb7290 commit 69cb63a
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions src/renderer/features/home/routes/home-route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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',
},
],
},
},
{
Expand All @@ -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: (
Expand Down

0 comments on commit 69cb63a

Please sign in to comment.