diff options
author | (quasar) nebula <towerofnix@gmail.com> | 2021-08-02 16:15:57 -0300 |
---|---|---|
committer | (quasar) nebula <towerofnix@gmail.com> | 2021-08-02 16:15:57 -0300 |
commit | 9ff95d1c338d8a194c91d90b3f8fccf59442da03 (patch) | |
tree | 2413c9fe2f4947f9780f764d7f42c96bb312cbe4 /src/page | |
parent | 49153bc1b7c6a7a4764004f1359d66bc81c051f6 (diff) |
fix misordered art lists & chronology links
Diffstat (limited to 'src/page')
-rw-r--r-- | src/page/album.js | 1 | ||||
-rw-r--r-- | src/page/artist.js | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/page/album.js b/src/page/album.js index adcc0584..19efc701 100644 --- a/src/page/album.js +++ b/src/page/album.js @@ -394,6 +394,7 @@ export function generateAlbumChronologyLinks(album, currentTrack, {generateChron }), generateChronologyLinks(currentTrack || album, { contribKey: 'coverArtists', + dateKey: 'coverArtDate', getThings: artist => [...artist.albums.asCoverArtist, ...artist.tracks.asCoverArtist], headingString: 'misc.chronology.heading.coverArt' }) diff --git a/src/page/artist.js b/src/page/artist.js index 695fddf0..2e87669d 100644 --- a/src/page/artist.js +++ b/src/page/artist.js @@ -51,7 +51,7 @@ export function write(artist, {wikiData}) { key }); - const artListChunks = chunkByProperties(artThingsAll.flatMap(thing => + const artListChunks = chunkByProperties(sortByDate(artThingsAll.flatMap(thing => (['coverArtists', 'wallpaperArtists', 'bannerArtists'] .map(key => getArtistsAndContrib(thing, key)) .filter(({ contrib }) => contrib) @@ -61,7 +61,7 @@ export function write(artist, {wikiData}) { date: +(thing.coverArtDate || thing.date), ...props }))) - ), ['date', 'album']); + )), ['date', 'album']); const commentaryListChunks = chunkByProperties(commentaryThings.map(thing => ({ album: thing.album || thing, |