Browse Source

Fix automation block taglines without bindings

gh-pages
Andrew Kingston 6 years ago
parent
commit
1c2d90fe3d
  1. 9
      packages/builder/src/components/automation/AutomationBuilder/flowchart/AutomationBlockTagline.svelte

9
packages/builder/src/components/automation/AutomationBuilder/flowchart/AutomationBlockTagline.svelte

@ -29,10 +29,11 @@
.replace(/}}/, "}}</b>")
// Extract schema paths for any input bindings
const inputPaths = formattedTagline
.match(/{{\s*\S+\s*}}/g)
.map(x => x.replace(/[{}]/g, "").trim())
const schemaPaths = inputPaths.map(x => x.replace(/\./g, ".properties."))
let inputPaths = formattedTagline.match(/{{\s*\S+\s*}}/g) || []
inputPaths = inputPaths.map(path => path.replace(/[{}]/g, "").trim())
const schemaPaths = inputPaths.map(path =>
path.replace(/\./g, ".properties.")
)
// Replace any enum bindings with their pretty equivalents
schemaPaths.forEach((path, idx) => {

Loading…
Cancel
Save