From 4ad137f1ebf1f41de5469c58a4999c8ee7a43f3f Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Mon, 12 Oct 2020 16:27:21 -0700 Subject: [PATCH] Fixed: Size on disk sorting and display Closes #4014 --- frontend/src/Series/Details/SeriesDetails.js | 2 +- frontend/src/Series/Index/Posters/SeriesIndexPoster.js | 4 +++- frontend/src/Store/Actions/seriesActions.js | 6 ++++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/frontend/src/Series/Details/SeriesDetails.js b/frontend/src/Series/Details/SeriesDetails.js index e9aced62e..d31bd9a25 100644 --- a/frontend/src/Series/Details/SeriesDetails.js +++ b/frontend/src/Series/Details/SeriesDetails.js @@ -426,7 +426,7 @@ class SeriesDetails extends Component { { - formatBytes(sizeOnDisk) + formatBytes(sizeOnDisk || 0) } diff --git a/frontend/src/Series/Index/Posters/SeriesIndexPoster.js b/frontend/src/Series/Index/Posters/SeriesIndexPoster.js index 2e1ec3d1b..b539342d2 100644 --- a/frontend/src/Series/Index/Posters/SeriesIndexPoster.js +++ b/frontend/src/Series/Index/Posters/SeriesIndexPoster.js @@ -97,7 +97,8 @@ class SeriesIndexPoster extends Component { seasonCount, episodeCount, episodeFileCount, - totalEpisodeCount + totalEpisodeCount, + sizeOnDisk } = statistics; const { @@ -226,6 +227,7 @@ class SeriesIndexPoster extends Component {