« get me outta code hell

use html.fragment instead of ternary most places - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/page/album-commentary.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2022-11-21 20:05:27 -0400
committer(quasar) nebula <qznebula@protonmail.com>2022-11-21 20:05:27 -0400
commit860b9fbf12315362d2c33864521c3f081fd66545 (patch)
tree0a1dec47c9e8beb901417f186eb68177d9d1e9d9 /src/page/album-commentary.js
parentb7633208507e3cd25ef7f7018759a0402c13a2f8 (diff)
use html.fragment instead of ternary most places
Diffstat (limited to 'src/page/album-commentary.js')
-rw-r--r--src/page/album-commentary.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/page/album-commentary.js b/src/page/album-commentary.js
index beddf5a..e3a63ba 100644
--- a/src/page/album-commentary.js
+++ b/src/page/album-commentary.js
@@ -43,10 +43,10 @@ export function write(album) {
             words: html.tag('b', language.formatWordCount(words, {unit: true})),
             entries: html.tag('b', language.countCommentaryEntries(entries.length, {unit: true})),
           })),
-          ...album.commentary ? [
+          ...html.fragment(album.commentary && [
             html.tag('h3', language.$('albumCommentaryPage.entry.title.albumCommentary')),
             html.tag('blockquote', transformMultiline(album.commentary)),
-          ] : [],
+          ]),
           ...album.tracks.filter(t => t.commentary).flatMap(track => [
             html.tag('h3',
               {id: 'track.directory'},