diff --git a/frontend/src/AlbumStudio/AlbumStudioAlbum.js b/frontend/src/AlbumStudio/AlbumStudioAlbum.js index 3022f7d06..947ec9565 100644 --- a/frontend/src/AlbumStudio/AlbumStudioAlbum.js +++ b/frontend/src/AlbumStudio/AlbumStudioAlbum.js @@ -23,10 +23,9 @@ class AlbumStudioAlbum extends Component { render() { const { - id, title, monitored, - statistics = {}, + statistics, isSaving } = this.props; diff --git a/frontend/src/Artist/Details/ArtistDetails.js b/frontend/src/Artist/Details/ArtistDetails.js index fe665fc6e..0aef778e9 100644 --- a/frontend/src/Artist/Details/ArtistDetails.js +++ b/frontend/src/Artist/Details/ArtistDetails.js @@ -619,6 +619,7 @@ ArtistDetails.propTypes = { }; ArtistDetails.defaultProps = { + statistics: {}, isSaving: false }; diff --git a/frontend/src/Artist/Index/Banners/ArtistIndexBanner.js b/frontend/src/Artist/Index/Banners/ArtistIndexBanner.js index ccd040b4f..dbe5f1a1d 100644 --- a/frontend/src/Artist/Index/Banners/ArtistIndexBanner.js +++ b/frontend/src/Artist/Index/Banners/ArtistIndexBanner.js @@ -61,7 +61,7 @@ class ArtistIndexBanner extends Component { status, foreignArtistId, nextAiring, - statistics = {}, + statistics, images, bannerWidth, bannerHeight, @@ -244,8 +244,12 @@ ArtistIndexBanner.propTypes = { }; ArtistIndexBanner.defaultProps = { - trackCount: 0, - trackFileCount: 0 + statistics: { + albumCount: 0, + trackCount: 0, + trackFileCount: 0, + totalTrackCount: 0 + } }; export default ArtistIndexBanner; diff --git a/frontend/src/Artist/Index/Overview/ArtistIndexOverview.js b/frontend/src/Artist/Index/Overview/ArtistIndexOverview.js index af3cc11a0..4baa47f76 100644 --- a/frontend/src/Artist/Index/Overview/ArtistIndexOverview.js +++ b/frontend/src/Artist/Index/Overview/ArtistIndexOverview.js @@ -253,8 +253,12 @@ ArtistIndexOverview.propTypes = { }; ArtistIndexOverview.defaultProps = { - trackCount: 0, - trackFileCount: 0 + statistics: { + albumCount: 0, + trackCount: 0, + trackFileCount: 0, + totalTrackCount: 0 + } }; export default ArtistIndexOverview; diff --git a/frontend/src/Artist/Index/Posters/ArtistIndexPoster.js b/frontend/src/Artist/Index/Posters/ArtistIndexPoster.js index 37c3f183e..9437b878b 100644 --- a/frontend/src/Artist/Index/Posters/ArtistIndexPoster.js +++ b/frontend/src/Artist/Index/Posters/ArtistIndexPoster.js @@ -61,7 +61,7 @@ class ArtistIndexPoster extends Component { foreignArtistId, status, nextAiring, - statistics = {}, + statistics, images, posterWidth, posterHeight, @@ -243,8 +243,12 @@ ArtistIndexPoster.propTypes = { }; ArtistIndexPoster.defaultProps = { - trackCount: 0, - trackFileCount: 0 + statistics: { + albumCount: 0, + trackCount: 0, + trackFileCount: 0, + totalTrackCount: 0 + } }; export default ArtistIndexPoster; diff --git a/frontend/src/Artist/Index/Table/ArtistIndexRow.js b/frontend/src/Artist/Index/Table/ArtistIndexRow.js index 87609c37b..8ff9ce9a6 100644 --- a/frontend/src/Artist/Index/Table/ArtistIndexRow.js +++ b/frontend/src/Artist/Index/Table/ArtistIndexRow.js @@ -416,8 +416,12 @@ ArtistIndexRow.propTypes = { }; ArtistIndexRow.defaultProps = { - trackCount: 0, - trackFileCount: 0 + statistics: { + albumCount: 0, + trackCount: 0, + trackFileCount: 0, + totalTrackCount: 0 + } }; export default ArtistIndexRow;