diff --git a/packages/builder/src/components/design/settings/controls/ButtonActionEditor/actions/TriggerAutomation.svelte b/packages/builder/src/components/design/settings/controls/ButtonActionEditor/actions/TriggerAutomation.svelte index aa617ab9a3..ecbb5a9a31 100644 --- a/packages/builder/src/components/design/settings/controls/ButtonActionEditor/actions/TriggerAutomation.svelte +++ b/packages/builder/src/components/design/settings/controls/ButtonActionEditor/actions/TriggerAutomation.svelte @@ -23,6 +23,12 @@ if (automationStatus === AUTOMATION_STATUS.NEW) { synchronous = false } + + if (automationStatus === AUTOMATION_STATUS.EXISTING) { + synchronous = automations.find( + automation => automation._id === parameters.automationId + ).synchronous + } } $: automations = $automationStore.automations .filter(a => a.definition.trigger?.stepId === TriggerStepID.APP) @@ -79,6 +85,8 @@ parameters.automationId = automationId parameters.synchronous = synchronous } + + $: error = parameters.timeout > 120 ? "Timeout must be less than 120s" : null
@@ -133,6 +141,16 @@ >
+