diff --git a/packages/builder/src/components/automation/SetupPanel/AutomationBlockSetup.svelte b/packages/builder/src/components/automation/SetupPanel/AutomationBlockSetup.svelte index 758aae2f35..dba83ae17c 100644 --- a/packages/builder/src/components/automation/SetupPanel/AutomationBlockSetup.svelte +++ b/packages/builder/src/components/automation/SetupPanel/AutomationBlockSetup.svelte @@ -91,14 +91,17 @@ {:else if value.customType === 'code'} {JSON.stringify(bindings, null, 2)} - Note: The result of the very last statement of this script will be returned and available as the "value" property in following automation blocks. + + Note: The result of the very last statement of this script will be + returned and available as the "value" property in following automation + blocks. + { + on:change={e => { block.inputs[key] = e.detail.value }} - value={block.inputs[key]} - /> + value={block.inputs[key]} /> {:else if value.type === 'string' || value.type === 'number'} { - value[field.name] = e.detail + on:change={e => { + value[field.name] = e.detail }} label={field.name} type="string"
{JSON.stringify(bindings, null, 2)}