diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/data/things/wiki-info.js | 4 |
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 + '/'), }, |