mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-16 12:53:32 +00:00
fix: roll resets day
This commit is contained in:
committed by
Carlos Valente
parent
a29a493678
commit
efd19353e9
@@ -751,6 +751,13 @@ export function roll(
|
||||
// preload timer properties
|
||||
runtimeState.timer.duration = calculateDuration(runtimeState.eventNow.timeStart, runtimeState.eventNow.timeEnd);
|
||||
runtimeState.timer.current = runtimeState.timer.duration;
|
||||
|
||||
// reset rundown state - the rundown will start fresh when the event begins
|
||||
runtimeState.rundown.actualStart = null;
|
||||
runtimeState.rundown.currentDay = null;
|
||||
runtimeState._startDayOffset = null;
|
||||
runtimeState._startEpoch = null;
|
||||
|
||||
return { eventId: runtimeState.eventNow.id, didStart: false };
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user