« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/data/things/group.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/data/things/group.js b/src/data/things/group.js
index b6fba79c..0dbbbb7f 100644
--- a/src/data/things/group.js
+++ b/src/data/things/group.js
@@ -50,7 +50,10 @@ export class Group extends Thing {
 
       expose: {
         dependencies: ['description'],
-        compute: ({description}) => description.split('<hr class="split">')[0],
+        compute: ({description}) =>
+          (description
+            ? description.split('<hr class="split">')[0]
+            : null),
       },
     },