mirror of
https://github.com/cpvalente/ontime.git
synced 2026-09-05 14:29:20 +00:00
fix: roll active with upcoming event
fixed an bug where the next event index 0 was treated as no event found
This commit is contained in:
@@ -988,16 +988,16 @@ export class EventTimer extends Timer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// nothing to play next, unload
|
// nothing to play next, unload
|
||||||
if (!foundNow && !nextIndex) {
|
if (foundNow == null && nextIndex == null) {
|
||||||
this.unload();
|
this.unload();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (nextIndex) {
|
if (nextIndex != null) {
|
||||||
// load titles
|
// load titles
|
||||||
this._loadThisTitles(nextIndex, 'next');
|
this._loadThisTitles(nextIndex, 'next');
|
||||||
|
|
||||||
if (!foundNow) {
|
if (foundNow == null) {
|
||||||
// timer counts to nextStart
|
// timer counts to nextStart
|
||||||
this.secondaryTimer = nextStart;
|
this.secondaryTimer = nextStart;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user