diff --git a/packages/builder/src/components/automation/SetupPanel/AutomationBlockSetup.svelte b/packages/builder/src/components/automation/SetupPanel/AutomationBlockSetup.svelte index 3d857ec9fb..53acb59cd9 100644 --- a/packages/builder/src/components/automation/SetupPanel/AutomationBlockSetup.svelte +++ b/packages/builder/src/components/automation/SetupPanel/AutomationBlockSetup.svelte @@ -104,7 +104,10 @@ ) bindings = bindings.concat( outputs.map(([name, value]) => { - const runtime = idx === 0 ? `trigger.${name}` : `steps.${idx}.${name}` + const stepsLabel = block.name.startsWith("JS") + ? `steps[${idx}].${name}` + : `steps.${idx}.${name}` + const runtime = idx === 0 ? `trigger.${name}` : stepsLabel return { label: runtime, type: value.type,