« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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)})`,
               ])),
     });