New: Expand seasons with all episodes having missing air dates
This commit is contained in:
parent
3cd4c67ba1
commit
3c1ca6ea4e
|
@ -129,10 +129,8 @@ class SeriesDetailsSeason extends Component {
|
|||
items
|
||||
} = this.props;
|
||||
|
||||
const expand = _.some(items, (item) => {
|
||||
return isAfter(item.airDateUtc) ||
|
||||
isAfter(item.airDateUtc, { days: -30 });
|
||||
});
|
||||
const expand = _.some(items, (item) => isAfter(item.airDateUtc) || isAfter(item.airDateUtc, { days: -30 })) ||
|
||||
items.every((item) => !item.airDateUtc);
|
||||
|
||||
onExpandPress(seasonNumber, expand && seasonNumber > 0);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue