fix crash when artist is not set for an album

This commit is contained in:
Violet Caulfield
2025-12-26 09:00:34 -06:00
parent 8536ca67bf
commit b76468c29e
+2 -2
View File
@@ -78,7 +78,7 @@ export default function AlbumTrackListHeader({ album }: { album: BaseItemDto }):
{album.Name ?? 'Untitled Album'}
</H5>
{album.AlbumArtists && (
{album.AlbumArtists && album.AlbumArtists.length > 0 && (
<Text
bold
color={'$primary'}
@@ -91,7 +91,7 @@ export default function AlbumTrackListHeader({ album }: { album: BaseItemDto }):
fontSize={'$5'}
paddingBottom={'$2'}
>
{album.AlbumArtists![0].Name ?? 'Untitled Artist'}
{album.AlbumArtists[0].Name ?? 'Untitled Artist'}
</Text>
)}