« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data/things/album.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/data/things/album.js')
-rw-r--r--src/data/things/album.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/data/things/album.js b/src/data/things/album.js
index 8f21f622..fc5c9d7e 100644
--- a/src/data/things/album.js
+++ b/src/data/things/album.js
@@ -650,9 +650,12 @@ export class Album extends Thing {
           currentTrackSectionTracks.push(entry);
           trackData.push(entry);
 
-          artworkData.push(...entry.trackArtworks);
-
+          // Set the track's album before accessing its list of artworks.
+          // The existence of its artwork objects may depend on access to
+          // its album's 'Default Track Cover Artists'.
           entry.album = album;
+
+          artworkData.push(...entry.trackArtworks);
         }
 
         closeCurrentTrackSection();