« get me outta code hell

content: generateAlbumStyleRules: oops - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-09-26 11:32:12 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-09-26 11:32:12 -0300
commit8ed9240b56d61be97a5cc1da7c9fcb179bb58a93 (patch)
tree396c71160e27c424f992cf50a666416ca04c6957
parent424cb392d3a4fc2f7b47b68de30378fc5abf1321 (diff)
content: generateAlbumStyleRules: oops
-rw-r--r--src/content/dependencies/generateAlbumStyleRules.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/content/dependencies/generateAlbumStyleRules.js b/src/content/dependencies/generateAlbumStyleRules.js
index 9269ae83..c5acf374 100644
--- a/src/content/dependencies/generateAlbumStyleRules.js
+++ b/src/content/dependencies/generateAlbumStyleRules.js
@@ -64,8 +64,9 @@ export default {
       ]);
 
     return (
-      [...wallpaperRule, ...bannerRule, ...dataRule]
+      [wallpaperRule, bannerRule, dataRule]
         .filter(Boolean)
+        .flat()
         .join('\n'));
   },
 };