diff options
Diffstat (limited to 'src/content/dependencies/generateArtistGalleryPage.js')
-rw-r--r-- | src/content/dependencies/generateArtistGalleryPage.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/content/dependencies/generateArtistGalleryPage.js b/src/content/dependencies/generateArtistGalleryPage.js index 41758d59..d1ec3efe 100644 --- a/src/content/dependencies/generateArtistGalleryPage.js +++ b/src/content/dependencies/generateArtistGalleryPage.js @@ -1,3 +1,4 @@ +import {stitchArrays} from '../../util/sugar.js'; import {sortAlbumsTracksChronologically} from '../../util/wiki-data.js'; // TODO: Very awkward we have to duplicate this functionality in relations and data. @@ -92,10 +93,11 @@ export default { links: relations.links, names: data.names, images: - relations.images.map((image, i) => - image.slots({ - path: data.paths[i], - })), + stitchArrays({ + image: relations.images, + path: data.paths, + }).map(({image, path}) => + image.slot('path', path)), }), ], |