mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-17 05:13:32 +00:00
refactor: restructure model to contain an object of rundowns
This commit is contained in:
@@ -7,7 +7,7 @@ import { dayInMs } from './conversionUtils.js';
|
||||
*/
|
||||
export function isNewLatest(
|
||||
currentEvent: Pick<OntimeEvent, 'timeStart' | 'duration' | 'dayOffset'>,
|
||||
previousEvent?: Pick<OntimeEvent, 'timeStart' | 'duration' | 'dayOffset'>,
|
||||
previousEvent: Pick<OntimeEvent, 'timeStart' | 'duration' | 'dayOffset'> | null,
|
||||
) {
|
||||
// true if there is no previous
|
||||
if (!previousEvent) {
|
||||
|
||||
Reference in New Issue
Block a user