diff --git a/lib/music_library_web/live/artist_live/show.ex b/lib/music_library_web/live/artist_live/show.ex index eed9b0b9..eab806b3 100644 --- a/lib/music_library_web/live/artist_live/show.ex +++ b/lib/music_library_web/live/artist_live/show.ex @@ -65,14 +65,15 @@ defmodule MusicLibraryWeb.ArtistLive.Show do socket |> assign(:nav_section, :artists) |> assign(:artist, artist) + |> assign(:artist_info, artist_info) |> assign(:country, ArtistInfo.country(artist_info)) |> stream(:collection_records, collection_records, reset: true) |> stream(:wishlist_records, wishlist_records, reset: true) |> assign(:collection_records_count, Enum.count(collection_records)) |> assign(:wishlist_records_count, Enum.count(wishlist_records)) - |> assign_async(:artist_info, fn -> - with {:ok, artist_info} <- LastFm.get_artist_info(artist.musicbrainz_id, artist.name) do - {:ok, %{artist_info: artist_info}} + |> assign_async(:lastfm_artist_info, fn -> + with {:ok, lastfm_artist_info} <- LastFm.get_artist_info(artist.musicbrainz_id, artist.name) do + {:ok, %{lastfm_artist_info: lastfm_artist_info}} end end) |> assign_async(:similar_artists, fn -> diff --git a/lib/music_library_web/live/artist_live/show.html.heex b/lib/music_library_web/live/artist_live/show.html.heex index 16facd41..9b380551 100644 --- a/lib/music_library_web/live/artist_live/show.html.heex +++ b/lib/music_library_web/live/artist_live/show.html.heex @@ -6,7 +6,7 @@