From d04f958c118504a8b06fafbb353ac8df572bb36b Mon Sep 17 00:00:00 2001 From: Carlos Valente Date: Fri, 19 Sep 2025 06:12:02 +0200 Subject: [PATCH] fix: initialise group time --- apps/server/src/stores/runtimeState.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/apps/server/src/stores/runtimeState.ts b/apps/server/src/stores/runtimeState.ts index 467267c9d..9f73dd775 100644 --- a/apps/server/src/stores/runtimeState.ts +++ b/apps/server/src/stores/runtimeState.ts @@ -640,6 +640,10 @@ export function roll( runtimeState.timer.startedAt = runtimeState.clock; runtimeState.timer.secondaryTimer = null; + if (runtimeState.groupNow !== null && runtimeState.rundown.actualGroupStart === null) { + runtimeState.rundown.actualGroupStart = runtimeState.clock; + } + if (runtimeState.rundown.actualStart === null) { runtimeState.rundown.actualStart = runtimeState.clock; runtimeState._startDayOffset = 0; @@ -719,6 +723,11 @@ export function roll( // update runtime runtimeState.rundown.actualStart = runtimeState.clock; + + if (runtimeState.groupNow !== null && runtimeState.rundown.actualGroupStart === null) { + runtimeState.rundown.actualGroupStart = runtimeState.clock; + } + // update metadata runtimeState._startDayOffset = 0; runtimeState._startEpoch = epoch;