« get me outta code hell

content: generateGroupSecondaryNav: handle disabled listings - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-02-24 08:31:33 -0400
committer(quasar) nebula <qznebula@protonmail.com>2024-02-24 08:31:33 -0400
commit4fcfbca35a925b79e83f857a251243279de76e61 (patch)
treeabe813289379828d1ef76f2460fe21ae2cc8f089 /src/content
parentf0691a8aee179023e26e9edffc7b8b7e4d5f93c6 (diff)
content: generateGroupSecondaryNav: handle disabled listings
Diffstat (limited to 'src/content')
-rw-r--r--src/content/dependencies/generateGroupSecondaryNav.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/content/dependencies/generateGroupSecondaryNav.js b/src/content/dependencies/generateGroupSecondaryNav.js
index e9c7004d..6501cfca 100644
--- a/src/content/dependencies/generateGroupSecondaryNav.js
+++ b/src/content/dependencies/generateGroupSecondaryNav.js
@@ -84,12 +84,12 @@ export default {
       class: 'nav-links-groups',
       content:
         (!relations.previousGroupLink && !relations.nextGroupLink
-          ? categoryLink
+          ? categoryLink ?? html.blank()
           : html.tag('span',
               relations.colorStyle,
 
               [
-                categoryLink.slot('color', false),
+                categoryLink?.slot('color', false),
                 `(${language.formatUnitList(previousNextPart)})`,
               ])),
     });