diff --git a/packages/builder/src/components/automation/AutomationBuilder/FlowChart/ActionModal.svelte b/packages/builder/src/components/automation/AutomationBuilder/FlowChart/ActionModal.svelte index e4ebd7f20f..66632fb2e0 100644 --- a/packages/builder/src/components/automation/AutomationBuilder/FlowChart/ActionModal.svelte +++ b/packages/builder/src/components/automation/AutomationBuilder/FlowChart/ActionModal.svelte @@ -20,8 +20,7 @@ let collectBlockExists = $selectedAutomation.definition.steps.some( step => step.stepId === ActionStepID.COLLECT ) - $: console.log($licensing) - $: console.log(syncWebhooksEnabled) + const disabled = { SEND_EMAIL_SMTP: { disabled: !$admin.checklist.smtp.checked, diff --git a/packages/builder/src/components/design/settings/controls/ButtonActionEditor/ButtonActionDrawer.svelte b/packages/builder/src/components/design/settings/controls/ButtonActionEditor/ButtonActionDrawer.svelte index 3228c1402d..aa8e1af950 100644 --- a/packages/builder/src/components/design/settings/controls/ButtonActionEditor/ButtonActionDrawer.svelte +++ b/packages/builder/src/components/design/settings/controls/ButtonActionEditor/ButtonActionDrawer.svelte @@ -151,7 +151,6 @@ bindings.push(stateBinding) } }) - // Get which indexes are asynchronous automations as we want to filter them out from the bindings const asynchronousAutomationIndexes = actions .map((action, index) => { @@ -174,7 +173,6 @@ } else { allBindings = eventContextBindings.concat(bindings) } - return allBindings } 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 ecbb5a9a31..8a38645ee7 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 @@ -54,6 +54,8 @@ ) $: selectedSchema = selectedAutomation?.schema + $: error = parameters.timeout > 120 ? "Timeout must be less than 120s" : null + const onFieldsChanged = e => { parameters.fields = Object.entries(e.detail || {}).reduce( (acc, [key, value]) => { @@ -85,8 +87,6 @@ parameters.automationId = automationId parameters.synchronous = synchronous } - - $: error = parameters.timeout > 120 ? "Timeout must be less than 120s" : null