« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/static/client2.js2
1 files changed, 1 insertions, 1 deletions
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'));