« get me outta code hell

content: listTracksByDate: skip dateless tracks - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content/dependencies
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-05-21 07:49:43 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-05-21 07:49:43 -0300
commit7a901961dca34fc68ad0014637461979348b0397 (patch)
tree08dd55b9a5dfcdde6a81df03a0e7d503c43da29d /src/content/dependencies
parentbf102c4e051f118b356fcf226375639193c3549a (diff)
content: listTracksByDate: skip dateless tracks
Diffstat (limited to 'src/content/dependencies')
-rw-r--r--src/content/dependencies/listTracksByDate.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/content/dependencies/listTracksByDate.js b/src/content/dependencies/listTracksByDate.js
index 01ce4e2d..0a2bfd6c 100644
--- a/src/content/dependencies/listTracksByDate.js
+++ b/src/content/dependencies/listTracksByDate.js
@@ -15,7 +15,8 @@ export default {
 
       chunks:
         chunkByProperties(
-          sortAlbumsTracksChronologically(trackData.slice()),
+          sortAlbumsTracksChronologically(
+            trackData.filter(track => track.date)),
           ['album', 'date']),
     };
   },