« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/content/dependencies/generateWikiHomeAlbumsRow.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/content/dependencies/generateWikiHomeAlbumsRow.js b/src/content/dependencies/generateWikiHomeAlbumsRow.js
index 2c6a147e..a19f104c 100644
--- a/src/content/dependencies/generateWikiHomeAlbumsRow.js
+++ b/src/content/dependencies/generateWikiHomeAlbumsRow.js
@@ -108,14 +108,15 @@ export default {
       stitchArrays({
         image: relations.images,
         path: data.paths,
-        name: data.names,
+        name: data.names ?? data.paths.slice().fill(null),
       }).map(({image, path, name}) =>
           image.slots({
             path,
             missingSourceContent:
-              language.$('misc.albumGrid.noCoverArt', {
-                album: name,
-              }),
+              name &&
+                language.$('misc.albumGrid.noCoverArt', {
+                  album: name,
+                }),
             }));
 
     commonSlots.actionLinks =