mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-23 16:09:11 +00:00
fix: nullcheck for nextPublicEventId in findRoll (#567)
Co-authored-by: Alex Christoffer Rasmussen <alex.christoffer@gmail.com>
This commit is contained in:
@@ -180,8 +180,8 @@ export class EventLoader {
|
|||||||
this.loaded.selectedEventIndex = nowIndex;
|
this.loaded.selectedEventIndex = nowIndex;
|
||||||
this.loaded.selectedEventId = currentEvent?.id || null;
|
this.loaded.selectedEventId = currentEvent?.id || null;
|
||||||
this.loaded.numEvents = timedEvents.length;
|
this.loaded.numEvents = timedEvents.length;
|
||||||
this.loaded.nextEventId = nextEvent.id;
|
this.loaded.nextEventId = nextEvent?.id || null;
|
||||||
this.loaded.nextPublicEventId = nextPublicEvent.id;
|
this.loaded.nextPublicEventId = nextPublicEvent?.id || null;
|
||||||
|
|
||||||
return { currentEvent, nextEvent, timeToNext };
|
return { currentEvent, nextEvent, timeToNext };
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user