mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-15 12:23:51 +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
|
||||
const newObjectProperty = parseProperty(property, value);
|
||||
const key = Object.keys(newObjectProperty)[0] as keyof OntimeEvent;
|
||||
shouldThrottle = willCauseRegeneration(key) || shouldThrottle;
|
||||
shouldThrottle = shouldThrottle || willCauseRegeneration(key);
|
||||
if (patchEvent.custom && newObjectProperty.custom) {
|
||||
Object.assign(patchEvent.custom, newObjectProperty.custom);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user