mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-31 20:09:11 +00:00
chore: rename currentBlock > parent
This commit is contained in:
@@ -278,7 +278,7 @@ export const swapEventData = (eventA: OntimeEvent, eventB: OntimeEvent): [newA:
|
||||
timeEnd: eventA.timeEnd,
|
||||
duration: eventA.duration,
|
||||
linkStart: eventA.linkStart,
|
||||
currentBlock: eventA.currentBlock,
|
||||
parent: eventA.parent,
|
||||
// keep schedule metadata
|
||||
delay: eventA.delay,
|
||||
gap: eventA.gap,
|
||||
@@ -296,7 +296,7 @@ export const swapEventData = (eventA: OntimeEvent, eventB: OntimeEvent): [newA:
|
||||
timeEnd: eventB.timeEnd,
|
||||
duration: eventB.duration,
|
||||
linkStart: eventB.linkStart,
|
||||
currentBlock: eventB.currentBlock,
|
||||
parent: eventB.parent,
|
||||
// keep schedule metadata
|
||||
delay: eventB.delay,
|
||||
gap: eventB.gap,
|
||||
@@ -365,8 +365,8 @@ export function getPreviousBlock(rundown: Pick<Rundown, 'entries' | 'order'>, cu
|
||||
const currentEvent = rundown.entries[currentId];
|
||||
|
||||
// check if event is inside a block
|
||||
if (isOntimeEvent(currentEvent) && currentEvent.currentBlock) {
|
||||
return rundown.entries[currentEvent.currentBlock] as OntimeBlock;
|
||||
if (isOntimeEvent(currentEvent) && currentEvent.parent) {
|
||||
return rundown.entries[currentEvent.parent] as OntimeBlock;
|
||||
}
|
||||
|
||||
let foundCurrentEvent = false;
|
||||
|
||||
Reference in New Issue
Block a user