mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-19 22:24:11 +00:00
hotfix/0.8.1 prevent issue with falsy value (#107)
This commit is contained in:
@@ -1304,7 +1304,7 @@ export class EventTimer extends Timer {
|
|||||||
if (this.selectedEventIndex === this.numEvents - 1) return;
|
if (this.selectedEventIndex === this.numEvents - 1) return;
|
||||||
|
|
||||||
// if there is no event running, go to first
|
// if there is no event running, go to first
|
||||||
if (!this.selectedEventIndex) {
|
if (this.selectedEventIndex === null) {
|
||||||
this.loadEvent(0);
|
this.loadEvent(0);
|
||||||
} else {
|
} else {
|
||||||
const gotoEvent =
|
const gotoEvent =
|
||||||
|
|||||||
Reference in New Issue
Block a user