« 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/generateTrackInfoPage.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/content/dependencies/generateTrackInfoPage.js')
-rw-r--r--src/content/dependencies/generateTrackInfoPage.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/content/dependencies/generateTrackInfoPage.js b/src/content/dependencies/generateTrackInfoPage.js
index 39f2a437..4540b79c 100644
--- a/src/content/dependencies/generateTrackInfoPage.js
+++ b/src/content/dependencies/generateTrackInfoPage.js
@@ -140,10 +140,12 @@ export default {
         styleRules: [relations.albumStyleRules],
 
         cover:
-          relations.cover?.slots({
-            showReferenceLinks: true,
-            showNonUniqueLine: true,
-          }),
+          (relations.cover
+            ? relations.cover.slots({
+                showReferenceLinks: true,
+                showNonUniqueLine: true,
+              })
+            : null),
 
         mainContent: [
           relations.releaseInfo,