From bb1c53c44f9e16ee7c530007420705c4232eff55 Mon Sep 17 00:00:00 2001 From: Claudio Ortolina Date: Sun, 29 Mar 2026 08:48:30 +0100 Subject: [PATCH] Don't display some stats when there's no record --- lib/music_library_web/live/stats_live/index.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/music_library_web/live/stats_live/index.ex b/lib/music_library_web/live/stats_live/index.ex index 50273127..aa091893 100644 --- a/lib/music_library_web/live/stats_live/index.ex +++ b/lib/music_library_web/live/stats_live/index.ex @@ -27,7 +27,7 @@ defmodule MusicLibraryWeb.StatsLive.Index do wishlist_count={@wishlist_count} scrobble_count={@scrobble_count} /> -
+
0} class="grid gap-x-5 md:grid-cols-2"> <.formats_stats collection_count_by_format={@collection_count_by_format} /> <.types_stats collection_count_by_type={@collection_count_by_type} />
@@ -42,7 +42,7 @@ defmodule MusicLibraryWeb.StatsLive.Index do streams={@streams} /> -
+
0} class="grid grid-cols-1 gap-x-5 md:grid-cols-2 lg:grid-cols-3"> <.top_collection_artists records_by_artist={@records_by_artist} /> <.top_collection_genres records_by_genre={@records_by_genre} /> <.top_release_years records_by_release_year={@records_by_release_year} />