« get me outta code hell

test: generateAdditionalFilesShortcut (snapshot) - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-04-05 16:06:52 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-04-05 16:06:52 -0300
commitcea250920bdbe12e1d87469ee9070211610884a4 (patch)
tree0d60d7b272ce8f5d65707224730b00456e31f0c8 /src
parent17f1220718f0e736723108042fc00cd5cb90070d (diff)
test: generateAdditionalFilesShortcut (snapshot)
Diffstat (limited to 'src')
-rw-r--r--src/content/dependencies/generateAdditionalFilesShortcut.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/content/dependencies/generateAdditionalFilesShortcut.js b/src/content/dependencies/generateAdditionalFilesShortcut.js
index dd097e28..7dfe07b3 100644
--- a/src/content/dependencies/generateAdditionalFilesShortcut.js
+++ b/src/content/dependencies/generateAdditionalFilesShortcut.js
@@ -1,3 +1,5 @@
+import {empty} from '../../util/sugar.js';
+
 export default {
   extraDependencies: [
     'html',
@@ -14,6 +16,10 @@ export default {
     html,
     language,
   }) {
+    if (empty(data.titles)) {
+      return html.blank();
+    }
+
     return language.$('releaseInfo.additionalFiles.shortcut', {
       anchorLink:
         html.tag('a',