« get me outta code hell

only generate commentary index if any exists - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/upd8.js
diff options
context:
space:
mode:
author(quasar) nebula <towerofnix@gmail.com>2021-02-07 15:29:14 -0400
committer(quasar) nebula <towerofnix@gmail.com>2021-02-07 15:29:14 -0400
commit3e06706faee9d509e9d377f39634af1c21de198e (patch)
treea37753908e953f288e92b9987484bd47ece58d26 /upd8.js
parent1322f423ffcb76ce532ce584b138d648d6b0df95 (diff)
only generate commentary index if any exists
Diffstat (limited to 'upd8.js')
-rwxr-xr-xupd8.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/upd8.js b/upd8.js
index 130f6067..e53da22f 100755
--- a/upd8.js
+++ b/upd8.js
@@ -3197,6 +3197,10 @@ function getWordCount(str) {
 }
 
 function writeCommentaryPages() {
+    if (!filterAlbumsByCommentary().length) {
+        return;
+    }
+
     return progressPromiseAll('Writing commentary pages.', queue([
         writeCommentaryIndex,
         ...filterAlbumsByCommentary().map(curry(writeAlbumCommentaryPage))