« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content/dependencies
diff options
context:
space:
mode:
Diffstat (limited to 'src/content/dependencies')
-rw-r--r--src/content/dependencies/generateAlbumNavLinks.js4
1 files 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'),
               }),