« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data/yaml.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/data/yaml.js')
-rw-r--r--src/data/yaml.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/data/yaml.js b/src/data/yaml.js
index c875c34f..f5944a99 100644
--- a/src/data/yaml.js
+++ b/src/data/yaml.js
@@ -790,6 +790,7 @@ export function parseAnnotatedReferences(entries, {
 }
 
 export function parseArtwork({
+  single = false,
   fileExtensionFromThingProperty,
   dateFromThingProperty,
   artistContribsFromThingProperty,
@@ -808,6 +809,8 @@ export function parseArtwork({
   const transform = (value, ...args) =>
     (Array.isArray(value)
       ? value.map(entry => parseSingleEntry(entry, ...args))
+   : single
+      ? parseSingleEntry(value, ...args)
       : [parseSingleEntry(value, ...args)]);
 
   transform.provide = provide;