mirror of https://github.com/lidarr/Lidarr
Fixed: Invalid image URL if Artist is missing background image
(cherry picked from commit dd096e0fda71b3afa9b09c2900abbf226d8a5204) Co-authored-by: Bogdan <mynameisbogdan@users.noreply.github.com>
This commit is contained in:
parent
54af0ca52d
commit
67e9ce909a
|
@ -252,6 +252,8 @@ class ArtistDetails extends Component {
|
|||
expandIcon = icons.EXPAND;
|
||||
}
|
||||
|
||||
const fanartUrl = getFanartUrl(images);
|
||||
|
||||
return (
|
||||
<PageContent title={artistName}>
|
||||
<PageToolbar>
|
||||
|
@ -347,9 +349,11 @@ class ArtistDetails extends Component {
|
|||
<div className={styles.header}>
|
||||
<div
|
||||
className={styles.backdrop}
|
||||
style={{
|
||||
backgroundImage: `url(${getFanartUrl(images)})`
|
||||
}}
|
||||
style={
|
||||
fanartUrl ?
|
||||
{ backgroundImage: `url(${fanartUrl})` } :
|
||||
null
|
||||
}
|
||||
>
|
||||
<div className={styles.backdropOverlay} />
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue