diff --git a/src/lib/components/views/ArtistDetailView.svelte b/src/lib/components/views/ArtistDetailView.svelte index ae1385dce..2acdba1c9 100644 --- a/src/lib/components/views/ArtistDetailView.svelte +++ b/src/lib/components/views/ArtistDetailView.svelte @@ -160,6 +160,7 @@ let mbRelationships = $state(null); let mbRelationshipsLoading = $state(false); let mbArtistMbid = $state(null); + let mbAvailable = $state(true); // Assume available until proven otherwise let artistDetailEl = $state(null); let aboutSection = $state(null); let topTracksSection = $state(null); @@ -503,11 +504,13 @@ mbRelationshipsLoading = true; mbRelationships = null; mbArtistMbid = null; + mbAvailable = true; // Reset on each load attempt try { // Check if MusicBrainz is enabled const enabled = await invoke('musicbrainz_is_enabled'); if (!enabled) { + mbAvailable = false; mbRelationshipsLoading = false; return; } @@ -542,6 +545,7 @@ }; } catch (err) { console.error('Failed to load MusicBrainz relationships:', err); + mbAvailable = false; mbRelationships = null; } finally { mbRelationshipsLoading = false; @@ -1972,70 +1976,72 @@ - - + {/if} {/if}