mirror of https://github.com/lidarr/Lidarr
Fixed: Invalid image URL if Album is missing background image
(cherry picked from commit dd096e0fda71b3afa9b09c2900abbf226d8a5204)
This commit is contained in:
parent
9457fecb65
commit
016ff25384
|
@ -236,8 +236,9 @@ class AlbumDetails extends Component {
|
|||
expandedState
|
||||
} = this.state;
|
||||
|
||||
let expandIcon = icons.EXPAND_INDETERMINATE;
|
||||
const fanartUrl = getFanartUrl(artist.images);
|
||||
|
||||
let expandIcon = icons.EXPAND_INDETERMINATE;
|
||||
let trackFilesCountMessage = translate('TrackFilesCountMessage');
|
||||
|
||||
if (trackFileCount === 1) {
|
||||
|
@ -326,9 +327,11 @@ class AlbumDetails extends Component {
|
|||
<div className={styles.header}>
|
||||
<div
|
||||
className={styles.backdrop}
|
||||
style={{
|
||||
backgroundImage: `url(${getFanartUrl(artist.images)})`
|
||||
}}
|
||||
style={
|
||||
fanartUrl ?
|
||||
{ backgroundImage: `url(${fanartUrl})` } :
|
||||
null
|
||||
}
|
||||
>
|
||||
<div className={styles.backdropOverlay} />
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue