mirror of https://github.com/Sonarr/Sonarr
Fixed: Invalid image URL if Series is missing background image
This commit is contained in:
parent
bb952e5ddf
commit
dd096e0fda
|
@ -248,6 +248,8 @@ class SeriesDetails extends Component {
|
||||||
expandIcon = icons.EXPAND;
|
expandIcon = icons.EXPAND;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const fanartUrl = getFanartUrl(images);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<PageContent title={title}>
|
<PageContent title={title}>
|
||||||
<PageToolbar>
|
<PageToolbar>
|
||||||
|
@ -327,9 +329,11 @@ class SeriesDetails 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…
Reference in New Issue