« 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/util/search-spec.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/util/search-spec.js b/src/util/search-spec.js
index d8ae936e..2cdbffa7 100644
--- a/src/util/search-spec.js
+++ b/src/util/search-spec.js
@@ -64,6 +64,13 @@ export const searchSpec = {
           .map(contrib => contrib.artist)
           .flatMap(artist => [artist.name, ...artist.aliasNames]),
 
+      groups:
+        (Object.hasOwn(thing, 'groups')
+          ? thing.groups.map(group => group.name)
+       : Object.hasOwn(thing, 'album')
+          ? thing.album.groups.map(group => group.name)
+          : []),
+
       artwork:
         prepareArtwork(thing),
     }),
@@ -72,6 +79,7 @@ export const searchSpec = {
       'primaryName',
       'additionalNames',
       'contributors',
+      'groups',
     ],
 
     store: [