Don't fail composing artist image url when image is not present

This commit is contained in:
Claudio Ortolina
2025-04-29 18:50:23 +01:00
parent 818a416b1c
commit 4a70e02f14
@@ -73,7 +73,7 @@
</h2>
<img
class="w-full rounded-md shadow-sm mt-4"
src={~p"/artists/#{@artist_info.id}/image?vsn=#{@artist_info.image_data_hash}"}
src={~p"/artists/#{@artist_info.id}/image?vsn=#{@artist_info.image_data_hash || ""}"}
alt={@artist.name}
onerror={"this.src = '" <> ~p"/images/cover-not-found.png" <> "';"}
/>