From d62e174c5b7d71c38270ef93da7ad4b640c4d72b Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Mon, 23 Oct 2023 23:43:44 -0300 Subject: client: don't have album sidebar break on tracks w/o href --- src/static/client2.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/static/client2.js b/src/static/client2.js index 4f4a7153..758d91a6 100644 --- a/src/static/client2.js +++ b/src/static/client2.js @@ -1241,7 +1241,7 @@ function getAlbumCommentarySidebarReferences() { info.sidebarTrackDirectories = info.sidebarTrackLinks - .map(el => el.getAttribute('href').slice(1)); + .map(el => el.getAttribute('href')?.slice(1) ?? null); info.sidebarTrackSections = Array.from(info.sidebar.getElementsByTagName('details')); -- cgit 1.3.0-6-gf8a5