null songCount and albumCount in genre type

This commit is contained in:
jeffvli
2025-11-23 14:26:12 -08:00
parent a32f76720a
commit 7c71f1058d
4 changed files with 24 additions and 6 deletions
@@ -101,9 +101,11 @@ const getGenres = (
_itemType: LibraryItem.GENRE,
_serverId: server?.id || 'unknown',
_serverType: ServerType.SUBSONIC,
albumCount: null,
id: genre.name,
imageUrl: null,
name: genre.name,
songCount: null,
}))
: item.genre
? [
@@ -111,9 +113,11 @@ const getGenres = (
_itemType: LibraryItem.GENRE,
_serverId: server?.id || 'unknown',
_serverType: ServerType.SUBSONIC,
albumCount: null,
id: item.genre,
imageUrl: null,
name: item.genre,
songCount: null,
},
]
: [];