From a7281f12ee5fc52f8b748bb1fb555a057e8e6677 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Fri, 25 Feb 2022 20:26:12 -0400 Subject: inherit hasTrackArt and use in getTrackCover util --- src/util/wiki-data.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/util') diff --git a/src/util/wiki-data.js b/src/util/wiki-data.js index 41071d17..36c61454 100644 --- a/src/util/wiki-data.js +++ b/src/util/wiki-data.js @@ -159,7 +159,7 @@ export function getTotalDuration(tracks) { export function getTrackCover(track, {to}) { // Some al8ums don't have any track art at all, and in those, every track // just inherits the al8um's own cover art. - if (track.coverArtists === null) { + if (!track.hasCoverArt) { return getAlbumCover(track.album, {to}); } else { return to('media.trackCover', track.album.directory, track.directory); -- cgit 1.3.0-6-gf8a5