« get me outta code hell

yaml: parseAdditionalNames: accept empty name - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-09-30 21:39:05 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-09-30 21:39:05 -0300
commit03a8835666d30b51ddf6c4d2f90668b1d4252cdb (patch)
tree746b1008888ab292eef0dcb26bd3310cf617b508 /src
parent12e2fa110e27655b4d10dfdb013beee253a975ba (diff)
yaml: parseAdditionalNames: accept empty name
Evil
Diffstat (limited to 'src')
-rw-r--r--src/data/yaml.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/data/yaml.js b/src/data/yaml.js
index ae8e2dd6..65e7bcae 100644
--- a/src/data/yaml.js
+++ b/src/data/yaml.js
@@ -447,7 +447,7 @@ export function parseAdditionalFiles(entries) {
 
 export function parseAdditionalNames(entries) {
   return parseArrayEntries(entries, item => {
-    if (typeof item === 'object' && item['Name'])
+    if (typeof item === 'object' && typeof item['Name'] === 'string')
       return {name: item['Name'], annotation: item['Annotation'] ?? null};
 
     if (typeof item !== 'string') return item;