From 6572bd0951d506e4a91366da2ae8d710d5a13a93 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sun, 14 Jan 2024 16:54:45 -0400 Subject: use atOffset() and .at() where appropriate --- src/content/dependencies/generateArtistInfoPageFlashesChunkedList.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/content/dependencies/generateArtistInfoPageFlashesChunkedList.js') 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}) => -- cgit 1.3.0-6-gf8a5