« get me outta code hell

content: fix misc. areas assuming coverArtDate present - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content/dependencies/generateTrackInfoPage.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-10-02 19:06:30 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-10-02 19:06:30 -0300
commit90e6cfcfb8c2c43228a13396ff0f6fb87c2c1589 (patch)
tree7ef28d97e13c94e3afe767116fb6f2aa736d6223 /src/content/dependencies/generateTrackInfoPage.js
parentd00f71c185123b4d68ab4738e5dc0edae06d6762 (diff)
content: fix misc. areas assuming coverArtDate present
Diffstat (limited to 'src/content/dependencies/generateTrackInfoPage.js')
-rw-r--r--src/content/dependencies/generateTrackInfoPage.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/content/dependencies/generateTrackInfoPage.js b/src/content/dependencies/generateTrackInfoPage.js
index 1083d863..93334948 100644
--- a/src/content/dependencies/generateTrackInfoPage.js
+++ b/src/content/dependencies/generateTrackInfoPage.js
@@ -82,7 +82,7 @@ export default {
             ...artist.albumsAsCoverArtist,
             ...artist.tracksAsCoverArtist,
           ], {
-            getDate: albumOrTrack => albumOrTrack.coverArtDate,
+            getDate: thing => thing.coverArtDate ?? thing.date,
           }),
       }),