« 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
diff options
context:
space:
mode:
Diffstat (limited to 'src/data')
-rw-r--r--src/data/yaml.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/data/yaml.js b/src/data/yaml.js
index 0a7fce93..85c05b93 100644
--- a/src/data/yaml.js
+++ b/src/data/yaml.js
@@ -945,7 +945,7 @@ export function parseContentEntriesFromSourceText(thingClass, sourceText, {subdo
     const artistTextNodes =
       Array.from(
         splitContentNodesAround(
-          parseContentNodes(matchEntry.artistText),
+          parseContentNodes(matchEntry.artists),
           /\|/g));
 
     const separatorIndices =
@@ -955,9 +955,9 @@ export function parseContentEntriesFromSourceText(thingClass, sourceText, {subdo
 
     if (empty(separatorIndices)) {
       if (artistTextNodes.length === 1 && artistTextNodes[0].type === 'text') {
-        artistReferences = matchEntry.artistText;
+        artistReferences = matchEntry.artists;
       } else {
-        artistText = matchEntry.artistText;
+        artistText = matchEntry.artists;
       }
     } else {
       const firstSeparatorIndex =
@@ -968,12 +968,12 @@ export function parseContentEntriesFromSourceText(thingClass, sourceText, {subdo
         artistTextNodes.length;
 
       artistReferences =
-        matchEntry.artistText.slice(
+        matchEntry.artists.slice(
           artistTextNodes.at(0).i,
           artistTextNodes.at(firstSeparatorIndex - 1).iEnd);
 
       artistText =
-        matchEntry.artistText.slice(
+        matchEntry.artists.slice(
           artistTextNodes.at(firstSeparatorIndex).iEnd,
           artistTextNodes.at(secondSeparatorIndex - 1).iEnd);
     }
@@ -1016,7 +1016,7 @@ export function parseContentEntriesFromSourceText(thingClass, sourceText, {subdo
   }
 
   const documents =
-    matchContentEntries(sourceText)
+    Array.from(matchContentEntries(sourceText))
       .map(matchEntry =>
         withEntries(
           map(matchEntry),