« 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
diff options
context:
space:
mode:
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}),
       },
     },
   });