From 4fcfbca35a925b79e83f857a251243279de76e61 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sat, 24 Feb 2024 08:31:33 -0400 Subject: content: generateGroupSecondaryNav: handle disabled listings --- src/content/dependencies/generateGroupSecondaryNav.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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)})`, ])), }); -- cgit 1.3.0-6-gf8a5