From a54d9ecc6177779687ac642c019dd5819187d4bf Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sat, 15 Apr 2023 20:22:56 -0300 Subject: generateAlbumNavLinks: don't panic when links unavailable 👻 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/content/dependencies/generateAlbumNavLinks.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/content/dependencies/generateAlbumNavLinks.js b/src/content/dependencies/generateAlbumNavLinks.js index 4ce94e1c..e4eb6c54 100644 --- a/src/content/dependencies/generateAlbumNavLinks.js +++ b/src/content/dependencies/generateAlbumNavLinks.js @@ -70,12 +70,12 @@ export default { const {content: extraLinks = []} = slots.showExtraLinks && {content: [ - relations.albumGalleryLink.slots({ + relations.albumGalleryLink?.slots({ attributes: {class: slots.currentExtra === 'gallery' && 'current'}, content: language.$('albumPage.nav.gallery'), }), - relations.albumCommentaryLink.slots({ + relations.albumCommentaryLink?.slots({ attributes: {class: slots.currentExtra === 'commentary' && 'current'}, content: language.$('albumPage.nav.commentary'), }), -- cgit 1.3.0-6-gf8a5