« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/data/yaml.js12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/data/yaml.js b/src/data/yaml.js
index c0aad943..8aca3299 100644
--- a/src/data/yaml.js
+++ b/src/data/yaml.js
@@ -1490,7 +1490,7 @@ export function filterReferenceErrors(wikiData) {
     }],
 
     ['homepageLayout.rows', undefined, {
-      sourceGroupByRef: 'group',
+      sourceGroupByRef: '_homepageSourceGroup',
       sourceAlbumsByRef: 'album',
     }],
 
@@ -1560,6 +1560,16 @@ export function filterReferenceErrors(wikiData) {
                 };
                 break;
 
+              case '_homepageSourceGroup':
+                findFn = groupRef => {
+                  if (groupRef === 'new-additions' || groupRef === 'new-releases') {
+                    return true;
+                  }
+
+                  return boundFind.group(groupRef);
+                };
+                break;
+
               case '_trackNotRerelease':
                 findFn = trackRef => {
                   const track = find.track(trackRef, wikiData.trackData, {mode: 'error'});