mirror of
https://github.com/cpvalente/ontime.git
synced 2026-09-02 12:59:09 +00:00
FIX: editing event data clears delay value (#1591)
* leave data in place in case it is not regenerated * update comments
This commit is contained in:
committed by
GitHub
parent
c62ce213f5
commit
37a91026d8
@@ -387,9 +387,9 @@ export function createPatch(originalEvent: OntimeEvent, patchEvent: Partial<Onti
|
|||||||
skip: typeof patchEvent.skip === 'boolean' ? patchEvent.skip : originalEvent.skip,
|
skip: typeof patchEvent.skip === 'boolean' ? patchEvent.skip : originalEvent.skip,
|
||||||
note: makeString(patchEvent.note, originalEvent.note),
|
note: makeString(patchEvent.note, originalEvent.note),
|
||||||
colour: makeString(patchEvent.colour, originalEvent.colour),
|
colour: makeString(patchEvent.colour, originalEvent.colour),
|
||||||
delay: 0, // is always regenerated by the cache
|
delay: originalEvent.delay, // is regenerated if timer related data is changed
|
||||||
dayOffset: 0, // is always regenerated by the cache
|
dayOffset: originalEvent.dayOffset, // is regenerated if timer related data is changed
|
||||||
gap: 0, // is always regenerated by the cache
|
gap: originalEvent.gap, // is regenerated if timer related data is changed
|
||||||
// short circuit empty string
|
// short circuit empty string
|
||||||
cue: makeString(patchEvent.cue ?? null, originalEvent.cue),
|
cue: makeString(patchEvent.cue ?? null, originalEvent.cue),
|
||||||
revision: originalEvent.revision,
|
revision: originalEvent.revision,
|
||||||
|
|||||||
Reference in New Issue
Block a user