mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 02:37:08 -07:00
Fixed: Invalid image URL if Album is missing background image
(cherry picked from commit dd096e0fda71b3afa9b09c2900abbf226d8a5204)
This commit is contained in:
parent
9457fecb65
commit
016ff25384
1 changed files with 7 additions and 4 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue