« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
-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))