Change to startsWith JS. Remove index decrement.
This commit is contained in:
parent
7c828382a3
commit
d8f487288e
|
@ -104,9 +104,9 @@
|
|||
)
|
||||
bindings = bindings.concat(
|
||||
outputs.map(([name, value]) => {
|
||||
const stepsLabel = block.name.toLowerCase().includes("bash")
|
||||
? `steps.${idx}.${name}`
|
||||
: `steps[${idx - 1}].${name}`
|
||||
const stepsLabel = block.name.startsWith("JS")
|
||||
? `steps[${idx}].${name}`
|
||||
: `steps.${idx}.${name}`
|
||||
const runtime = idx === 0 ? `trigger.${name}` : stepsLabel
|
||||
return {
|
||||
label: runtime,
|
||||
|
|
Loading…
Reference in New Issue