« 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/things.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/data/things.js b/src/data/things.js
index b48642a6..5889b119 100644
--- a/src/data/things.js
+++ b/src/data/things.js
@@ -609,9 +609,12 @@ Track.propertyDescriptors = {
         update: {validate: isBoolean},
 
         expose: {
-            dependencies: ['albumData'],
-            transform: (hasCoverArt, { albumData, [Track.instance]: track }) => (
-                hasCoverArt ?? Track.findAlbum(track, albumData)?.hasTrackArt ?? true)
+            dependencies: ['albumData', 'coverArtistContribsByRef'],
+            transform: (hasCoverArt, { albumData, coverArtistContribsByRef, [Track.instance]: track }) => (
+                hasCoverArt ??
+                (coverArtistContribsByRef?.length > 0 || null) ??
+                Track.findAlbum(track, albumData)?.hasTrackArt ??
+                true)
         }
     },