mirror of
https://github.com/cpvalente/ontime.git
synced 2026-09-10 08:39:34 +00:00
swap shouldThrottle check
Co-authored-by: Carlos Valente <34649812+cpvalente@users.noreply.github.com>
This commit is contained in:
committed by
arc-alex
parent
31316a6661
commit
cc14445252
@@ -57,7 +57,7 @@ const actionHandlers: Record<string, ActionHandler> = {
|
|||||||
// parseProperty is async because of the data lock
|
// parseProperty is async because of the data lock
|
||||||
const newObjectProperty = parseProperty(property, value);
|
const newObjectProperty = parseProperty(property, value);
|
||||||
const key = Object.keys(newObjectProperty)[0] as keyof OntimeEvent;
|
const key = Object.keys(newObjectProperty)[0] as keyof OntimeEvent;
|
||||||
shouldThrottle = willCauseRegeneration(key) || shouldThrottle;
|
shouldThrottle = shouldThrottle || willCauseRegeneration(key);
|
||||||
if (patchEvent.custom && newObjectProperty.custom) {
|
if (patchEvent.custom && newObjectProperty.custom) {
|
||||||
Object.assign(patchEvent.custom, newObjectProperty.custom);
|
Object.assign(patchEvent.custom, newObjectProperty.custom);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user