From 5049aa139842aaf6e808730a4dc89456acf10fa6 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Thu, 20 Jun 2024 08:26:58 -0300 Subject: content: genreateGroupInfoPageAlbumsSection: minor fixes Fixes a re-import from '#sugar', and referring to the wrong list for datetimestamps (which humorously doesn't actually present wrong data, because the lists only mismatch when dates are equal). --- src/content/dependencies/generateGroupInfoPageAlbumsSection.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/content/dependencies/generateGroupInfoPageAlbumsSection.js b/src/content/dependencies/generateGroupInfoPageAlbumsSection.js index 8899e98e..6a8e0871 100644 --- a/src/content/dependencies/generateGroupInfoPageAlbumsSection.js +++ b/src/content/dependencies/generateGroupInfoPageAlbumsSection.js @@ -1,5 +1,4 @@ -import {empty} from '#sugar'; -import {stitchArrays} from '#sugar'; +import {empty, stitchArrays} from '#sugar'; export default { contentDependencies: [ @@ -59,7 +58,7 @@ export default { .map(group => relation('linkGroup', group))), datetimestamps: - group.albums.map(album => + query.albums.map(album => (album.date ? relation('generateAbsoluteDatetimestamp', album.date) : null)), -- cgit 1.3.0-6-gf8a5