mirror of
https://github.com/cpvalente/ontime.git
synced 2026-07-26 10:38:55 +00:00
fix: flag cannot be the current event
This commit is contained in:
committed by
Carlos Valente
parent
126ff61738
commit
78e905a735
@@ -737,7 +737,12 @@ export function loadNextFlag(currentIndex: number, rundown: Rundown, metadata: R
|
||||
return;
|
||||
}
|
||||
|
||||
for (let i = currentIndex; i < metadata.timedEventOrder.length; i++) {
|
||||
// we are in the last event
|
||||
if (currentIndex + 1 >= metadata.timedEventOrder.length) {
|
||||
return;
|
||||
}
|
||||
|
||||
for (let i = currentIndex + 1; i < metadata.timedEventOrder.length; i++) {
|
||||
const entryId = metadata.timedEventOrder[i];
|
||||
if (metadata.flags.includes(entryId)) {
|
||||
const event = rundown.entries[entryId];
|
||||
|
||||
Reference in New Issue
Block a user