mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-23 16:09:11 +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;
|
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];
|
const entryId = metadata.timedEventOrder[i];
|
||||||
if (metadata.flags.includes(entryId)) {
|
if (metadata.flags.includes(entryId)) {
|
||||||
const event = rundown.entries[entryId];
|
const event = rundown.entries[entryId];
|
||||||
|
|||||||
Reference in New Issue
Block a user