Ensure values typed in the JS step node are properly converted. Allow multiple quote types for readable bindings
This commit is contained in:
parent
7b3663e0c0
commit
754f486414
|
@ -56,7 +56,10 @@
|
|||
memo,
|
||||
fetchData,
|
||||
} from "@budibase/frontend-core"
|
||||
import { getSchemaForDatasourcePlus } from "@/dataBinding"
|
||||
import {
|
||||
getSchemaForDatasourcePlus,
|
||||
readableToRuntimeBinding,
|
||||
} from "@/dataBinding"
|
||||
import { TriggerStepID, ActionStepID } from "@/constants/backend/automations"
|
||||
import { onMount, createEventDispatcher } from "svelte"
|
||||
import { writable } from "svelte/store"
|
||||
|
@ -1034,7 +1037,10 @@
|
|||
{bindings}
|
||||
{schema}
|
||||
panel={AutomationBindingPanel}
|
||||
on:change={e => onChange({ [key]: e.detail })}
|
||||
on:change={e =>
|
||||
onChange({
|
||||
[key]: readableToRuntimeBinding(bindings, e.detail),
|
||||
})}
|
||||
context={$memoContext}
|
||||
value={inputData[key]}
|
||||
/>
|
||||
|
|
|
@ -37,7 +37,7 @@ const { ContextScopes } = Constants
|
|||
|
||||
// Regex to match all instances of template strings
|
||||
const CAPTURE_VAR_INSIDE_TEMPLATE = /{{([^}]+)}}/g
|
||||
const CAPTURE_VAR_INSIDE_JS = /\$\("([^")]+)"\)/g
|
||||
const CAPTURE_VAR_INSIDE_JS = /\$\((["'`])([^"'`]+)\1\)/g
|
||||
const CAPTURE_HBS_TEMPLATE = /{{[\S\s]*?}}/g
|
||||
|
||||
const UpdateReferenceAction = {
|
||||
|
|
Loading…
Reference in New Issue