Fixed: Undefined statistics and season folder column width on series index
This commit is contained in:
parent
e4ec065386
commit
0cd5bb50bd
|
@ -3,6 +3,7 @@ import moment from 'moment';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import React, { Component } from 'react';
|
import React, { Component } from 'react';
|
||||||
import TextTruncate from 'react-text-truncate';
|
import TextTruncate from 'react-text-truncate';
|
||||||
|
import Alert from 'Components/Alert';
|
||||||
import HeartRating from 'Components/HeartRating';
|
import HeartRating from 'Components/HeartRating';
|
||||||
import Icon from 'Components/Icon';
|
import Icon from 'Components/Icon';
|
||||||
import Label from 'Components/Label';
|
import Label from 'Components/Label';
|
||||||
|
@ -604,13 +605,19 @@ class SeriesDetails extends Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
!isFetching && episodesError &&
|
!isFetching && episodesError ?
|
||||||
<div>{translate('EpisodesLoadError')}</div>
|
<Alert kind={kinds.DANGER}>
|
||||||
|
{translate('EpisodesLoadError')}
|
||||||
|
</Alert> :
|
||||||
|
null
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
!isFetching && episodeFilesError &&
|
!isFetching && episodeFilesError ?
|
||||||
<div>{translate('EpisodeFilesLoadError')}</div>
|
<Alert kind={kinds.DANGER}>
|
||||||
|
{translate('EpisodeFilesLoadError')}
|
||||||
|
</Alert> :
|
||||||
|
null
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
|
@ -633,10 +640,11 @@ class SeriesDetails extends Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
isPopulated && !seasons.length &&
|
isPopulated && !seasons.length ?
|
||||||
<div>
|
<Alert kind={kinds.WARNING}>
|
||||||
{translate('NoEpisodeInformation')}
|
{translate('NoEpisodeInformation')}
|
||||||
</div>
|
</Alert> :
|
||||||
|
null
|
||||||
}
|
}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -63,11 +63,11 @@ function SeriesIndexPoster(props: SeriesIndexPosterProps) {
|
||||||
} = series;
|
} = series;
|
||||||
|
|
||||||
const {
|
const {
|
||||||
seasonCount,
|
seasonCount = 0,
|
||||||
episodeCount,
|
episodeCount = 0,
|
||||||
episodeFileCount,
|
episodeFileCount = 0,
|
||||||
totalEpisodeCount,
|
totalEpisodeCount = 0,
|
||||||
sizeOnDisk,
|
sizeOnDisk = 0,
|
||||||
} = statistics;
|
} = statistics;
|
||||||
|
|
||||||
const dispatch = useDispatch();
|
const dispatch = useDispatch();
|
||||||
|
|
|
@ -93,7 +93,7 @@
|
||||||
.seasonFolder {
|
.seasonFolder {
|
||||||
composes: cell;
|
composes: cell;
|
||||||
|
|
||||||
width: 150px;
|
flex: 0 0 150px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.episodeProgress,
|
.episodeProgress,
|
||||||
|
|
Loading…
Reference in New Issue