diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-10-23 23:43:44 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-10-23 23:43:44 -0300 |
commit | d62e174c5b7d71c38270ef93da7ad4b640c4d72b (patch) | |
tree | c9d70cd5f87fed7179f3eddc4a43c84760cda466 /src | |
parent | 22b1823dd82bf4fd2063d121c743d02e452fe7f3 (diff) |
client: don't have album sidebar break on tracks w/o href
Diffstat (limited to 'src')
-rw-r--r-- | src/static/client2.js | 2 |
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')); |