mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-19 21:13:28 -07:00
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
1 changed files with 7 additions and 3 deletions
|
@ -252,6 +252,8 @@ class ArtistDetails extends Component {
|
||||||
expandIcon = icons.EXPAND;
|
expandIcon = icons.EXPAND;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const fanartUrl = getFanartUrl(images);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<PageContent title={artistName}>
|
<PageContent title={artistName}>
|
||||||
<PageToolbar>
|
<PageToolbar>
|
||||||
|
@ -347,9 +349,11 @@ class ArtistDetails extends Component {
|
||||||
<div className={styles.header}>
|
<div className={styles.header}>
|
||||||
<div
|
<div
|
||||||
className={styles.backdrop}
|
className={styles.backdrop}
|
||||||
style={{
|
style={
|
||||||
backgroundImage: `url(${getFanartUrl(images)})`
|
fanartUrl ?
|
||||||
}}
|
{ backgroundImage: `url(${fanartUrl})` } :
|
||||||
|
null
|
||||||
|
}
|
||||||
>
|
>
|
||||||
<div className={styles.backdropOverlay} />
|
<div className={styles.backdropOverlay} />
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue