« 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/wiki-info.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/data/things/wiki-info.js b/src/data/things/wiki-info.js
index 57446f3f..ef643681 100644
--- a/src/data/things/wiki-info.js
+++ b/src/data/things/wiki-info.js
@@ -61,7 +61,9 @@ export class WikiInfo extends Thing {
       update: {validate: isURL},
       expose: {
         transform: (value) =>
-          (value.endsWith('/')
+          (value === null
+            ? null
+         : value.endsWith('/')
             ? value
             : value + '/'),
       },