From a9e59b77986c630878fbca6f09d182e248a618a4 Mon Sep 17 00:00:00 2001 From: Qstick Date: Fri, 10 Aug 2018 20:47:28 -0400 Subject: [PATCH] Fixed: Prevent JS errors when statistics is null --- frontend/src/Album/Details/AlbumDetails.js | 2 +- frontend/src/Artist/Index/Banners/ArtistIndexBanner.js | 2 +- frontend/src/Artist/Index/Posters/ArtistIndexPoster.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/Album/Details/AlbumDetails.js b/frontend/src/Album/Details/AlbumDetails.js index 63e0f69a1..ecdface77 100644 --- a/frontend/src/Album/Details/AlbumDetails.js +++ b/frontend/src/Album/Details/AlbumDetails.js @@ -138,7 +138,7 @@ class AlbumDetails extends Component { title, disambiguation, albumType, - statistics, + statistics = {}, monitored, releaseDate, ratings, diff --git a/frontend/src/Artist/Index/Banners/ArtistIndexBanner.js b/frontend/src/Artist/Index/Banners/ArtistIndexBanner.js index 144995632..ccd040b4f 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, diff --git a/frontend/src/Artist/Index/Posters/ArtistIndexPoster.js b/frontend/src/Artist/Index/Posters/ArtistIndexPoster.js index d05bd4e4d..37c3f183e 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,