« get me outta code hell

content: generateReferencingArtworksPage: parameter name fix - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2025-01-03 07:46:44 -0400
committer(quasar) nebula <qznebula@protonmail.com>2025-01-03 07:46:44 -0400
commitc5653ec9b7ef49de0be5d277795766e8bcee078f (patch)
treef2b4d41ee9db3497ccb8cf192ac1fd091cda1d80 /src
parentf9e08473fbc0a2f088be3ade780b922ea1b3f22c (diff)
content: generateReferencingArtworksPage: parameter name fix
Diffstat (limited to 'src')
-rw-r--r--src/content/dependencies/generateReferencingArtworksPage.js18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/content/dependencies/generateReferencingArtworksPage.js b/src/content/dependencies/generateReferencingArtworksPage.js
index 78dae5b0..2fe2e93d 100644
--- a/src/content/dependencies/generateReferencingArtworksPage.js
+++ b/src/content/dependencies/generateReferencingArtworksPage.js
@@ -11,7 +11,7 @@ export default {
 
   extraDependencies: ['html', 'language'],
 
-  relations: (relation, referencedArtworks) => ({
+  relations: (relation, referencingArtworks) => ({
     layout:
       relation('generatePageLayout'),
 
@@ -19,37 +19,37 @@ export default {
       relation('generateCoverGrid'),
 
     links:
-      referencedArtworks.map(({thing}) =>
+      referencingArtworks.map(({thing}) =>
         (thing.album
           ? relation('linkTrack', thing)
           : relation('linkAlbum', thing))),
 
     images:
-      referencedArtworks.map(({thing}) =>
+      referencingArtworks.map(({thing}) =>
         relation('image', thing.artTags)),
   }),
 
-  data: (referencedArtworks) => ({
+  data: (referencingArtworks) => ({
     count:
-      referencedArtworks.length,
+      referencingArtworks.length,
 
     names:
-      referencedArtworks
+      referencingArtworks
         .map(({thing}) => thing.name),
 
     paths:
-      referencedArtworks
+      referencingArtworks
         .map(({thing}) =>
           (thing.album
             ? ['media.trackCover', thing.album.directory, thing.directory, thing.coverArtFileExtension]
             : ['media.albumCover', thing.directory, thing.coverArtFileExtension])),
 
     dimensions:
-      referencedArtworks
+      referencingArtworks
         .map(({thing}) => thing.coverArtDimensions),
 
     coverArtistNames:
-      referencedArtworks
+      referencingArtworks
         .map(({thing}) =>
           thing.coverArtistContribs
             .map(contrib => contrib.artist.name)),