« get me outta code hell

content: fix a couple code bugs w/ cover artwork changes - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content/dependencies/generateAlbumInfoPage.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-11-20 07:31:01 -0400
committer(quasar) nebula <qznebula@protonmail.com>2024-11-20 07:32:11 -0400
commit01ad4dda0d8609fbfb2759cc1bb975b9c6b71c58 (patch)
treecdc971f0edb6cd5aeba105230c873a75ac63e270 /src/content/dependencies/generateAlbumInfoPage.js
parentbd2629856c53facea5ff756a7e03a2758b32b6ba (diff)
content: fix a couple code bugs w/ cover artwork changes
Oops! All peachy now.
Diffstat (limited to 'src/content/dependencies/generateAlbumInfoPage.js')
-rw-r--r--src/content/dependencies/generateAlbumInfoPage.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/content/dependencies/generateAlbumInfoPage.js b/src/content/dependencies/generateAlbumInfoPage.js
index 14745b96..1f741a60 100644
--- a/src/content/dependencies/generateAlbumInfoPage.js
+++ b/src/content/dependencies/generateAlbumInfoPage.js
@@ -109,9 +109,11 @@ export default {
         additionalNames: relations.additionalNamesBox,
 
         cover:
-          relations.cover?.slots({
-            showReferenceLinks: true,
-          }),
+          (relations.cover
+            ? relations.cover.slots({
+                showReferenceLinks: true,
+              })
+            : null),
 
         mainContent: [
           relations.releaseInfo,