New: Expand seasons with all episodes having missing air dates

This commit is contained in:
Bogdan 2024-01-21 11:09:54 +02:00 committed by Mark McDowall
parent 3cd4c67ba1
commit 3c1ca6ea4e
1 changed files with 2 additions and 4 deletions

View File

@ -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);
}