From 37096a5c9e852ce32a14c34e940537b67d1df852 Mon Sep 17 00:00:00 2001 From: Prayag Prajapati Date: Wed, 27 Mar 2024 09:47:32 +0530 Subject: [PATCH] fix: album not displaying if no parent backdrop is found --- src/routes/album/index.jsx | 2 +- src/routes/episode/index.jsx | 16 +++++++++++++--- src/routes/series/index.tsx | 18 +++++++++++++++--- 3 files changed, 29 insertions(+), 7 deletions(-) diff --git a/src/routes/album/index.jsx b/src/routes/album/index.jsx index 2455269..a0b39c3 100644 --- a/src/routes/album/index.jsx +++ b/src/routes/album/index.jsx @@ -215,7 +215,7 @@ const MusicAlbumTitlePage = () => { >
- {item.data.BackdropImageTags ? ( + {item.data.ParentBackdropImageTags?.length ? ( { >
- {item.data.BackdropImageTags ? ( + {item.data.ParentBackdropImageTags?.length ? ( { }} /> ) : ( - <> + { + e.currentTarget.style.opacity = 1; + }} + style={{ + y: parallax, + }} + /> )}
{ }} /> ) : ( - <> + { + e.currentTarget.style.opacity = 1; + }} + style={{ + y: parallax, + }} + /> )}
@@ -421,7 +431,9 @@ const SeriesTitlePage = () => { /> ) : ( - <> +
+ {getTypeIcon(item.data.Type)} +
)}