fix info-banner

This commit is contained in:
isUnknown 2024-09-04 13:43:27 +02:00
parent 1c8e47d810
commit 646c5ab65f
4 changed files with 39 additions and 49 deletions

View file

@ -51,7 +51,6 @@ return function($page) {
$nextEvents = new Pages();
$currentSeasonSessions = [];
$previousSeasons = $page->children()->without($currentSeason);
foreach ($currentSeason->children() as $event) {
$sessions = $event->isMapadoEvent() == 'true' ? $event->remoteSessions() : $event->sessions();
@ -78,7 +77,6 @@ return function($page) {
return [
'previousEvents' => $previousEvents,
'nextEvents' => $nextEvents,
'currentSeasonSessions' => sortByMonth($currentSeasonSessions),
'previousSeasons' => $previousSeasons,
'currentSeasonSessions' => sortByMonth($currentSeasonSessions)
];
};