diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2024-04-05 16:40:30 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2024-04-24 10:23:14 -0300 |
commit | cc0fc2bbbe9ef0ec3966511ce365ab622cd6cd4f (patch) | |
tree | 78b0ec47e0047a688778ac66b4f1ba99eeafb314 | |
parent | 0caed2b117d94c5d72443266d85ad86635fff964 (diff) |
content: generateAlbumSecondaryNav: don't crash on dateless tracks
-rw-r--r-- | src/content/dependencies/generateAlbumSecondaryNav.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/content/dependencies/generateAlbumSecondaryNav.js b/src/content/dependencies/generateAlbumSecondaryNav.js index 400420ba..9b9380e2 100644 --- a/src/content/dependencies/generateAlbumSecondaryNav.js +++ b/src/content/dependencies/generateAlbumSecondaryNav.js @@ -102,7 +102,7 @@ export default { generate(relations, slots, {html, language}) { const navLinksShouldShowPreviousNext = (slots.mode === 'track' - ? Array.from(relations.previousNextLinks, () => false) + ? Array.from(relations.previousNextLinks ?? [], () => false) : stitchArrays({ previousAlbumLink: relations.previousAlbumLinks ?? null, nextAlbumLink: relations.nextAlbumLinks ?? null, |