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