From a6bce8a64aacaa8987087d405eceb5f9ad387015 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Wed, 13 Dec 2023 17:46:23 +0200 Subject: [PATCH] Fixed: Undefined statistics and season folder column width on series index --- .../src/Series/Index/Posters/SeriesIndexPoster.tsx | 10 +++++----- frontend/src/Series/Index/Table/SeriesIndexRow.css | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/frontend/src/Series/Index/Posters/SeriesIndexPoster.tsx b/frontend/src/Series/Index/Posters/SeriesIndexPoster.tsx index 50bf46524..0a0a385eb 100644 --- a/frontend/src/Series/Index/Posters/SeriesIndexPoster.tsx +++ b/frontend/src/Series/Index/Posters/SeriesIndexPoster.tsx @@ -63,11 +63,11 @@ function SeriesIndexPoster(props: SeriesIndexPosterProps) { } = series; const { - seasonCount, - episodeCount, - episodeFileCount, - totalEpisodeCount, - sizeOnDisk, + seasonCount = 0, + episodeCount = 0, + episodeFileCount = 0, + totalEpisodeCount = 0, + sizeOnDisk = 0, } = statistics; const dispatch = useDispatch(); diff --git a/frontend/src/Series/Index/Table/SeriesIndexRow.css b/frontend/src/Series/Index/Table/SeriesIndexRow.css index 7f1e47db4..1ad943161 100644 --- a/frontend/src/Series/Index/Table/SeriesIndexRow.css +++ b/frontend/src/Series/Index/Table/SeriesIndexRow.css @@ -93,7 +93,7 @@ .seasonFolder { composes: cell; - width: 150px; + flex: 0 0 150px; } .episodeProgress,