mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-08 17:03:53 +00:00
refactor: do not test automations without outputs
This commit is contained in:
committed by
Carlos Valente
parent
891bda6661
commit
11c1b472a2
@@ -37,7 +37,7 @@ export function triggerAutomations(event: TimerLifeCycle, state: RuntimeState) {
|
||||
|
||||
triggerAutomations.forEach((trigger) => {
|
||||
const automation = automations[trigger.automationId];
|
||||
if (!automation) {
|
||||
if (!automation || automation.outputs.length === 0) {
|
||||
return;
|
||||
}
|
||||
const shouldSend = testConditions(automation.filters, automation.filterRule, state);
|
||||
|
||||
Reference in New Issue
Block a user