Merge pull request #5298 from Budibase/bug/sev3/js_scripting_binding_label
Display correct selector label for JS Scripting
This commit is contained in:
commit
07d72294ed
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue