« get me outta code hell

polish up album & album extras nav - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/upd8.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2022-12-21 20:09:17 -0400
committer(quasar) nebula <qznebula@protonmail.com>2022-12-21 20:09:17 -0400
commitf215bf15ae61f9ad08f8992cbf273f0b1d0ff6a0 (patch)
treeae79cc87f853762eac7d02059fbd368f73c91b0c /src/upd8.js
parent9412fefa5d53af171a91bd3b8ce958d35a7f87d7 (diff)
polish up album & album extras nav
Diffstat (limited to 'src/upd8.js')
-rwxr-xr-xsrc/upd8.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/upd8.js b/src/upd8.js
index 0de724f2..20b0d28b 100755
--- a/src/upd8.js
+++ b/src/upd8.js
@@ -1068,10 +1068,6 @@ export function generateDocumentHTML(pageInfo, {
     let partContent;
 
     if (typeof cur.html === 'string') {
-      if (!cur.html) {
-        logWarn`Empty HTML in nav link ${JSON.stringify(cur)}`;
-        console.trace();
-      }
       partContent = cur.html;
     } else {
       const attributes = {
@@ -1099,6 +1095,8 @@ export function generateDocumentHTML(pageInfo, {
       partContent = html.tag('a', attributes, linkTitle);
     }
 
+    if (!partContent) continue;
+
     const part = html.tag('span',
       {class: cur.divider === false && 'no-divider'},
       partContent);