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} `;