diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2024-09-13 19:22:54 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2024-09-13 19:22:54 -0300 |
commit | 15bc0f97e630a1b1d13d0bd80096d81b9a65d7de (patch) | |
tree | 01cb270297f3d5521e20e4ae744a1d609a3172ca /src/data | |
parent | 7d0d37740483666dffcd0603c211bf3f2ff6bdce (diff) |
data: WikiInfo.canonicalBase: don't error if null
Diffstat (limited to 'src/data')
-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 + '/'), }, |