1
0
Fork 0
mirror of synced 2024-06-30 12:00:31 +12:00

Merge pull request #5298 from Budibase/bug/sev3/js_scripting_binding_label

Display correct selector label for JS Scripting
This commit is contained in:
melohagan 2022-04-14 08:40:32 +01:00 committed by GitHub
commit 881fee8a5f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,