« get me outta code hell

content: generateAlbumSecondaryNav: no empty accent parentheses - 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-06-15 17:21:25 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-06-15 17:21:48 -0300
commit470536c0ead771976e6b8771930eabb8030081c4 (patch)
treed11f0cbd27d8adde74980bafacacba9a1c364ffe /src
parente85c7b765c106006d45befcefa23789c3c57484c (diff)
content: generateAlbumSecondaryNav: no empty accent parentheses
Diffstat (limited to 'src')
-rw-r--r--src/content/dependencies/generateAlbumSecondaryNav.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/content/dependencies/generateAlbumSecondaryNav.js b/src/content/dependencies/generateAlbumSecondaryNav.js
index b2cfef69..6616f20e 100644
--- a/src/content/dependencies/generateAlbumSecondaryNav.js
+++ b/src/content/dependencies/generateAlbumSecondaryNav.js
@@ -1,3 +1,5 @@
+import {empty} from '../../util/sugar.js';
+
 export default {
   contentDependencies: [
     'generateColorStyleVariables',
@@ -80,7 +82,7 @@ export default {
           ].filter(Boolean);
 
           return (
-            (slots.mode === 'album'
+            (slots.mode === 'album' && !empty(links)
               ? html.tag('span', {style: colorVariables}, [
                   language.$('albumSidebar.groupBox.title', {
                     group: groupLink,