« get me outta code hell

content: misc adaptations for who/what -> artist/annotation - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content/dependencies/generateAlbumGalleryPage.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-04-24 11:15:40 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-04-24 11:15:40 -0300
commitba497c05bcb76bb48de70a2e1c890083c6f5dd58 (patch)
tree812d9fbe59d86c8aa24b5ca84543bb4c315476dc /src/content/dependencies/generateAlbumGalleryPage.js
parent65be7fc53faf08a056b6d388ad7aaf4a775f565b (diff)
content: misc adaptations for who/what -> artist/annotation
Diffstat (limited to 'src/content/dependencies/generateAlbumGalleryPage.js')
-rw-r--r--src/content/dependencies/generateAlbumGalleryPage.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/content/dependencies/generateAlbumGalleryPage.js b/src/content/dependencies/generateAlbumGalleryPage.js
index b4f9268c..aa025688 100644
--- a/src/content/dependencies/generateAlbumGalleryPage.js
+++ b/src/content/dependencies/generateAlbumGalleryPage.js
@@ -30,7 +30,7 @@ export default {
       const allCoverArtistArrays =
         tracksWithUniqueCoverArt
           .map(track => track.coverArtistContribs)
-          .map(contribs => contribs.map(contrib => contrib.who));
+          .map(contribs => contribs.map(contrib => contrib.artist));
 
       const allSameCoverArtists =
         allCoverArtistArrays
@@ -116,7 +116,7 @@ export default {
 
     data.coverArtists = [
       (album.hasCoverArt
-        ? album.coverArtistContribs.map(({who: artist}) => artist.name)
+        ? album.coverArtistContribs.map(({artist}) => artist.name)
         : null),
 
       ...
@@ -126,7 +126,7 @@ export default {
           }
 
           if (track.hasUniqueCoverArt) {
-            return track.coverArtistContribs.map(({who: artist}) => artist.name);
+            return track.coverArtistContribs.map(({artist}) => artist.name);
           }
 
           return null;