Browse Source
Merge pull request #5298 from Budibase/bug/sev3/js_scripting_binding_label
Display correct selector label for JS Scripting
pull/5424/head
melohagan
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
1 deletions
-
packages/builder/src/components/automation/SetupPanel/AutomationBlockSetup.svelte
|
|
@ -104,7 +104,10 @@ |
|
|
) |
|
|
) |
|
|
bindings = bindings.concat( |
|
|
bindings = bindings.concat( |
|
|
outputs.map(([name, value]) => { |
|
|
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 { |
|
|
return { |
|
|
label: runtime, |
|
|
label: runtime, |
|
|
type: value.type, |
|
|
type: value.type, |
|
|
|