mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-20 14:39:06 +00:00
fix event next (#1664)
This commit is contained in:
committed by
GitHub
parent
bf8ed8d017
commit
6711cdaf4f
@@ -249,7 +249,7 @@ export function loadNext(
|
||||
}
|
||||
const nowPlayableIndex = getPlayableIndexFromTimedIndex(metadata, eventIndex);
|
||||
|
||||
if (!nowPlayableIndex || nowPlayableIndex > metadata.playableEventOrder.length - 2) {
|
||||
if (nowPlayableIndex === null || nowPlayableIndex > metadata.playableEventOrder.length - 2) {
|
||||
// we cound not find the event now or the event now is the last playable event
|
||||
runtimeState.eventNext = null;
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user