« 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-18 22:56:10 -0300
commit0b71d7f5005e83e7055173cbac8ebe9bbffab643 (patch)
treeca4b5cc7fc99865a143ac7d0b45353f71d1466c5
parentb0b50b839025b2e344c0ff968f9e0e498b839b43 (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]),
 };