« get me outta code hell

content: gAIPChunkedList: blank if slots are blank - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-06-12 18:15:21 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-06-12 18:15:21 -0300
commit0e2535a3439f3ee3a3e4b29ed4bd74c0065d8838 (patch)
tree8b2e94d1013af9f5246ead1326c1378294771e7c
parent842c7661728b5c2ca7f0097e1f05a15ccb3c8981 (diff)
content: gAIPChunkedList: blank if slots are blank
-rw-r--r--src/content/dependencies/generateArtistInfoPageChunkedList.js11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/content/dependencies/generateArtistInfoPageChunkedList.js b/src/content/dependencies/generateArtistInfoPageChunkedList.js
index 8503d014..e7915ab7 100644
--- a/src/content/dependencies/generateArtistInfoPageChunkedList.js
+++ b/src/content/dependencies/generateArtistInfoPageChunkedList.js
@@ -13,11 +13,8 @@ export default {
     },
   },
 
-  generate(slots, {html}) {
-    return (
-      html.tag('dl', [
-        slots.groupInfo,
-        slots.chunks,
-      ]));
-  },
+  generate: (slots, {html}) =>
+    html.tag('dl',
+      {[html.onlyIfContent]: true},
+      [slots.groupInfo, slots.chunks]),
 };