mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-21 06:59:09 +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) => {
|
triggerAutomations.forEach((trigger) => {
|
||||||
const automation = automations[trigger.automationId];
|
const automation = automations[trigger.automationId];
|
||||||
if (!automation) {
|
if (!automation || automation.outputs.length === 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const shouldSend = testConditions(automation.filters, automation.filterRule, state);
|
const shouldSend = testConditions(automation.filters, automation.filterRule, state);
|
||||||
|
|||||||
Reference in New Issue
Block a user