« get me outta code hell

content, data: fix places that assume coverArtDate defaults to date - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-10-30 22:35:18 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-10-30 22:37:35 -0300
commitc1f93e2d270292bca7e991c180db618f4902a3f9 (patch)
treeb0530b50f1a0e23a2080e3c2a0ec45dac14a3825 /src/data
parentcabae7f32a08c8d1e9ce9609b0325cfe81135b60 (diff)
content, data: fix places that assume coverArtDate defaults to date
Diffstat (limited to 'src/data')
-rw-r--r--src/data/things/art-tag.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/data/things/art-tag.js b/src/data/things/art-tag.js
index 6503beec..8901ab39 100644
--- a/src/data/things/art-tag.js
+++ b/src/data/things/art-tag.js
@@ -54,7 +54,7 @@ export class ArtTag extends Thing {
           sortAlbumsTracksChronologically(
             [...albumData, ...trackData]
               .filter(({artTags}) => artTags.includes(artTag)),
-            {getDate: o => o.coverArtDate}),
+            {getDate: thing => thing.coverArtDate ?? thing.date}),
       },
     },
   });