« get me outta code hell

content: generateArtistInfoPageChunk: handle non-range flash dates properly - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-08-09 11:44:46 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-08-09 11:44:46 -0300
commitaa0023dadf8b40ccbf3dedfbcbafba25f23b995a (patch)
tree86d344f658f681d9e2073b66f9dd09ad1da617ac
parent360342696a7e29dbeb0d8b54228ba2c0ac3c162b (diff)
content: generateArtistInfoPageChunk: handle non-range flash dates properly
-rw-r--r--src/content/dependencies/generateArtistInfoPageChunk.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/content/dependencies/generateArtistInfoPageChunk.js b/src/content/dependencies/generateArtistInfoPageChunk.js
index eb9056cb..2b4523d1 100644
--- a/src/content/dependencies/generateArtistInfoPageChunk.js
+++ b/src/content/dependencies/generateArtistInfoPageChunk.js
@@ -62,7 +62,7 @@ export default {
             options.dateRange = language.formatDateRange(slots.dateRangeStart, slots.dateRangeEnd);
           } else if (slots.dateRangeStart || slots.date) {
             parts.push('withDate');
-            options.date = language.formatDate(slots.dateFirst);
+            options.date = language.formatDate(slots.dateRangeStart ?? slots.date);
           }
 
           accentedLink = language.formatString(parts.join('.'), options);