« get me outta code hell

content: generateAlbumAdditionalFilesList: fix no-description - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-04-04 11:56:04 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-04-04 11:56:04 -0300
commita3859afacb0054b30752d5eec802cdd558ac93b7 (patch)
treeb72ecc0c6c3bba1c6e9fd5004769cd16416f7dd3
parent48a57e64e705624a219b140fb88fcf295329deb5 (diff)
content: generateAlbumAdditionalFilesList: fix no-description
-rw-r--r--src/content/dependencies/generateAlbumAdditionalFilesList.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/content/dependencies/generateAlbumAdditionalFilesList.js b/src/content/dependencies/generateAlbumAdditionalFilesList.js
index 77aac472..9818a43c 100644
--- a/src/content/dependencies/generateAlbumAdditionalFilesList.js
+++ b/src/content/dependencies/generateAlbumAdditionalFilesList.js
@@ -65,7 +65,10 @@ export default {
         }).map(({chunk, title, description}) =>
             chunk.slots({
               title,
-              description: description.slot('mode', 'inline'),
+              description:
+                (description
+                  ? description.slot('mode', 'inline')
+                  : null),
             })),
 
       chunkItems: