mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-11 18:33:53 +00:00
Refactor: require trigger in all events objects (#1636)
* reqire trigger in all events * use structuredClone when cloning an event
This commit is contained in:
committed by
GitHub
parent
02c30c9681
commit
2a5b053d97
@@ -30,6 +30,7 @@ export const cloneEvent = (event: OntimeEvent): ClonedEvent => {
|
||||
gap: 0,
|
||||
timeWarning: event.timeWarning,
|
||||
timeDanger: event.timeDanger,
|
||||
custom: { ...event.custom },
|
||||
triggers: structuredClone(event.triggers),
|
||||
custom: structuredClone(event.custom),
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user