From 2ed5e236da592203a25564d44595bd3b2a6870bc Mon Sep 17 00:00:00 2001 From: thomas Date: Sun, 20 Sep 2020 17:23:32 -0400 Subject: [PATCH] Fix incorrect loading from #895 --- .../code/name/monkey/retromusic/repository/ArtistRepository.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/code/name/monkey/retromusic/repository/ArtistRepository.kt b/app/src/main/java/code/name/monkey/retromusic/repository/ArtistRepository.kt index 314d1331..907bf49c 100644 --- a/app/src/main/java/code/name/monkey/retromusic/repository/ArtistRepository.kt +++ b/app/src/main/java/code/name/monkey/retromusic/repository/ArtistRepository.kt @@ -90,7 +90,7 @@ class RealArtistRepository( .map { val currentAlbums = it.value if (albums.isNotEmpty()) { - Artist(currentAlbums[0].id, currentAlbums) + Artist(currentAlbums[0].artistId, currentAlbums) } else { Artist.empty }