« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content/dependencies/generateArtistInfoPageFlashesChunkedList.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/content/dependencies/generateArtistInfoPageFlashesChunkedList.js')
-rw-r--r--src/content/dependencies/generateArtistInfoPageFlashesChunkedList.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/content/dependencies/generateArtistInfoPageFlashesChunkedList.js b/src/content/dependencies/generateArtistInfoPageFlashesChunkedList.js
index 392b2782..799e8509 100644
--- a/src/content/dependencies/generateArtistInfoPageFlashesChunkedList.js
+++ b/src/content/dependencies/generateArtistInfoPageFlashesChunkedList.js
@@ -71,7 +71,7 @@ export default {
         query.chunks.map(({chunk}) => chunk[0].flash.date ?? null),
 
       lastDates:
-        query.chunks.map(({chunk}) => chunk[chunk.length - 1].flash.date ?? null),
+        query.chunks.map(({chunk}) => chunk.at(-1).flash.date ?? null),
 
       itemContributions:
         query.chunks.map(({chunk}) =>