From b008a70a0d1940726775f7e19f94781b6c20531d Mon Sep 17 00:00:00 2001 From: Binary Alley Date: Sun, 9 Aug 2026 12:20:02 -0700 Subject: [PATCH] Fixes the home page crashing when a library has no cover image --- src/Lumina.Presentation.Web/Views/Home/Index.cshtml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Lumina.Presentation.Web/Views/Home/Index.cshtml b/src/Lumina.Presentation.Web/Views/Home/Index.cshtml index 8587d682..d2b384d7 100644 --- a/src/Lumina.Presentation.Web/Views/Home/Index.cshtml +++ b/src/Lumina.Presentation.Web/Views/Home/Index.cshtml @@ -43,8 +43,13 @@ const libraryDiv = document.createElement('div'); libraryDiv.className = 'media-panel'; + // the cover image is optional, so it is only rendered when the library has one + const coverImageHtml = library.coverImage + ? `` + : ''; + libraryDiv.innerHTML = ` - + ${coverImageHtml} ${library.title} `;