« get me outta code hell

content: generateListAllAdditionalFilesChunk: got no files - 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:
author(quasar) nebula <qznebula@protonmail.com>2026-05-23 21:16:38 -0300
committer(quasar) nebula <qznebula@protonmail.com>2026-05-23 21:16:38 -0300
commit96df66b849789ac07723a97c799076184371e37c (patch)
treec36f4e2d0a458f4c7a127743758731736425fa4e /src/content/dependencies
parent29c7928e45ccf7ba936b27bc795867dc66d1d491 (diff)
content: generateListAllAdditionalFilesChunk: got no files
Diffstat (limited to 'src/content/dependencies')
-rw-r--r--src/content/dependencies/generateListAllAdditionalFilesChunk.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/content/dependencies/generateListAllAdditionalFilesChunk.js b/src/content/dependencies/generateListAllAdditionalFilesChunk.js
index dff652f6..ddbaa69d 100644
--- a/src/content/dependencies/generateListAllAdditionalFilesChunk.js
+++ b/src/content/dependencies/generateListAllAdditionalFilesChunk.js
@@ -67,9 +67,9 @@ export default {
                           : language.$(capsule, 'placeholderTitle'));
 
                       workingOptions.title =
-                        (links.length <= 1
-                          ? links[0].slot('content', titlePart)
-                          : html.tag('b', titlePart));
+                        (links.length === 0 ? titlePart
+                       : links.length === 1 ? links[0].slot('content', titlePart)
+                                            : html.tag('b', titlePart));
 
                       artistCredit.setSlots({
                         normalStringKey: capsule + '.credit',