diff options
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 |
commit | 03a8835666d30b51ddf6c4d2f90668b1d4252cdb (patch) | |
tree | 746b1008888ab292eef0dcb26bd3310cf617b508 | |
parent | 12e2fa110e27655b4d10dfdb013beee253a975ba (diff) |
yaml: parseAdditionalNames: accept empty name
Evil
-rw-r--r-- | src/data/yaml.js | 2 |
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; |