From c1c2212b5315887b763da47d4c4f53647e044ae3 Mon Sep 17 00:00:00 2001 From: Josh Patra Date: Tue, 3 Feb 2026 19:46:48 -0500 Subject: [PATCH] Fix undefined artists array causing syntax error --- allstarr/wwwroot/index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/allstarr/wwwroot/index.html b/allstarr/wwwroot/index.html index 70c6f14..94b4a00 100644 --- a/allstarr/wwwroot/index.html +++ b/allstarr/wwwroot/index.html @@ -1585,9 +1585,9 @@ // Add manual map button for external tracks // Use JSON.stringify to properly escape strings for JavaScript const escapedName = JSON.stringify(name); - const escapedTitle = JSON.stringify(t.title); - const escapedArtist = JSON.stringify(t.artists[0] || ''); - const escapedSpotifyId = JSON.stringify(t.spotifyId); + const escapedTitle = JSON.stringify(t.title || ''); + const escapedArtist = JSON.stringify((t.artists && t.artists[0]) || ''); + const escapedSpotifyId = JSON.stringify(t.spotifyId || ''); mapButton = ``; }