« 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/generateAlbumWallpaperStyleTag.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/content/dependencies/generateAlbumWallpaperStyleTag.js b/src/content/dependencies/generateAlbumWallpaperStyleTag.js
index f4044606..4c8a2e59 100644
--- a/src/content/dependencies/generateAlbumWallpaperStyleTag.js
+++ b/src/content/dependencies/generateAlbumWallpaperStyleTag.js
@@ -11,7 +11,9 @@ export default {
       album.wallpaperBrightness,
 
     singleWallpaperPath:
-      album.wallpaperArtwork.path,
+      (album.wallpaperArtwork
+        ? album.wallpaperArtwork.path
+        : null),
 
     singleWallpaperStyle:
       album.wallpaperStyle,