mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-19 04:59:35 -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
|
expandedState
|
||||||
} = this.state;
|
} = this.state;
|
||||||
|
|
||||||
let expandIcon = icons.EXPAND_INDETERMINATE;
|
const fanartUrl = getFanartUrl(artist.images);
|
||||||
|
|
||||||
|
let expandIcon = icons.EXPAND_INDETERMINATE;
|
||||||
let trackFilesCountMessage = translate('TrackFilesCountMessage');
|
let trackFilesCountMessage = translate('TrackFilesCountMessage');
|
||||||
|
|
||||||
if (trackFileCount === 1) {
|
if (trackFileCount === 1) {
|
||||||
|
@ -326,9 +327,11 @@ class AlbumDetails extends Component {
|
||||||
<div className={styles.header}>
|
<div className={styles.header}>
|
||||||
<div
|
<div
|
||||||
className={styles.backdrop}
|
className={styles.backdrop}
|
||||||
style={{
|
style={
|
||||||
backgroundImage: `url(${getFanartUrl(artist.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