mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-06 13:02:23 -07:00
Fixed: Artist Statistics throwing errors when null
This commit is contained in:
parent
93a0f18f82
commit
15672298c6
6 changed files with 28 additions and 12 deletions
|
@ -23,10 +23,9 @@ class AlbumStudioAlbum extends Component {
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const {
|
const {
|
||||||
id,
|
|
||||||
title,
|
title,
|
||||||
monitored,
|
monitored,
|
||||||
statistics = {},
|
statistics,
|
||||||
isSaving
|
isSaving
|
||||||
} = this.props;
|
} = this.props;
|
||||||
|
|
||||||
|
|
|
@ -619,6 +619,7 @@ ArtistDetails.propTypes = {
|
||||||
};
|
};
|
||||||
|
|
||||||
ArtistDetails.defaultProps = {
|
ArtistDetails.defaultProps = {
|
||||||
|
statistics: {},
|
||||||
isSaving: false
|
isSaving: false
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -61,7 +61,7 @@ class ArtistIndexBanner extends Component {
|
||||||
status,
|
status,
|
||||||
foreignArtistId,
|
foreignArtistId,
|
||||||
nextAiring,
|
nextAiring,
|
||||||
statistics = {},
|
statistics,
|
||||||
images,
|
images,
|
||||||
bannerWidth,
|
bannerWidth,
|
||||||
bannerHeight,
|
bannerHeight,
|
||||||
|
@ -244,8 +244,12 @@ ArtistIndexBanner.propTypes = {
|
||||||
};
|
};
|
||||||
|
|
||||||
ArtistIndexBanner.defaultProps = {
|
ArtistIndexBanner.defaultProps = {
|
||||||
trackCount: 0,
|
statistics: {
|
||||||
trackFileCount: 0
|
albumCount: 0,
|
||||||
|
trackCount: 0,
|
||||||
|
trackFileCount: 0,
|
||||||
|
totalTrackCount: 0
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
export default ArtistIndexBanner;
|
export default ArtistIndexBanner;
|
||||||
|
|
|
@ -253,8 +253,12 @@ ArtistIndexOverview.propTypes = {
|
||||||
};
|
};
|
||||||
|
|
||||||
ArtistIndexOverview.defaultProps = {
|
ArtistIndexOverview.defaultProps = {
|
||||||
trackCount: 0,
|
statistics: {
|
||||||
trackFileCount: 0
|
albumCount: 0,
|
||||||
|
trackCount: 0,
|
||||||
|
trackFileCount: 0,
|
||||||
|
totalTrackCount: 0
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
export default ArtistIndexOverview;
|
export default ArtistIndexOverview;
|
||||||
|
|
|
@ -61,7 +61,7 @@ class ArtistIndexPoster extends Component {
|
||||||
foreignArtistId,
|
foreignArtistId,
|
||||||
status,
|
status,
|
||||||
nextAiring,
|
nextAiring,
|
||||||
statistics = {},
|
statistics,
|
||||||
images,
|
images,
|
||||||
posterWidth,
|
posterWidth,
|
||||||
posterHeight,
|
posterHeight,
|
||||||
|
@ -243,8 +243,12 @@ ArtistIndexPoster.propTypes = {
|
||||||
};
|
};
|
||||||
|
|
||||||
ArtistIndexPoster.defaultProps = {
|
ArtistIndexPoster.defaultProps = {
|
||||||
trackCount: 0,
|
statistics: {
|
||||||
trackFileCount: 0
|
albumCount: 0,
|
||||||
|
trackCount: 0,
|
||||||
|
trackFileCount: 0,
|
||||||
|
totalTrackCount: 0
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
export default ArtistIndexPoster;
|
export default ArtistIndexPoster;
|
||||||
|
|
|
@ -416,8 +416,12 @@ ArtistIndexRow.propTypes = {
|
||||||
};
|
};
|
||||||
|
|
||||||
ArtistIndexRow.defaultProps = {
|
ArtistIndexRow.defaultProps = {
|
||||||
trackCount: 0,
|
statistics: {
|
||||||
trackFileCount: 0
|
albumCount: 0,
|
||||||
|
trackCount: 0,
|
||||||
|
trackFileCount: 0,
|
||||||
|
totalTrackCount: 0
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
export default ArtistIndexRow;
|
export default ArtistIndexRow;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue