From 03a8835666d30b51ddf6c4d2f90668b1d4252cdb Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Mon, 30 Sep 2024 21:39:05 -0300 Subject: yaml: parseAdditionalNames: accept empty name Evil --- src/data/yaml.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit 1.3.0-6-gf8a5