Feedback
This commit is contained in:
parent
12e87f0e52
commit
a26fbf3edd
|
@ -56,10 +56,7 @@
|
||||||
memo,
|
memo,
|
||||||
fetchData,
|
fetchData,
|
||||||
} from "@budibase/frontend-core"
|
} from "@budibase/frontend-core"
|
||||||
import {
|
import { getSchemaForDatasourcePlus } from "@/dataBinding"
|
||||||
getSchemaForDatasourcePlus,
|
|
||||||
readableToRuntimeBinding,
|
|
||||||
} from "@/dataBinding"
|
|
||||||
import { TriggerStepID, ActionStepID } from "@/constants/backend/automations"
|
import { TriggerStepID, ActionStepID } from "@/constants/backend/automations"
|
||||||
import { onMount, createEventDispatcher } from "svelte"
|
import { onMount, createEventDispatcher } from "svelte"
|
||||||
import { writable } from "svelte/store"
|
import { writable } from "svelte/store"
|
||||||
|
@ -1037,10 +1034,7 @@
|
||||||
{bindings}
|
{bindings}
|
||||||
{schema}
|
{schema}
|
||||||
panel={AutomationBindingPanel}
|
panel={AutomationBindingPanel}
|
||||||
on:change={e =>
|
on:change={e => onChange({ [key]: e.detail })}
|
||||||
onChange({
|
|
||||||
[key]: readableToRuntimeBinding(bindings, e.detail),
|
|
||||||
})}
|
|
||||||
context={$memoContext}
|
context={$memoContext}
|
||||||
value={inputData[key]}
|
value={inputData[key]}
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -5,7 +5,10 @@
|
||||||
encodeJSBinding,
|
encodeJSBinding,
|
||||||
processObjectSync,
|
processObjectSync,
|
||||||
} from "@budibase/string-templates"
|
} from "@budibase/string-templates"
|
||||||
import { runtimeToReadableBinding } from "@/dataBinding"
|
import {
|
||||||
|
runtimeToReadableBinding,
|
||||||
|
readableToRuntimeBinding,
|
||||||
|
} from "@/dataBinding"
|
||||||
import CodeEditor, { DropdownPosition } from "../CodeEditor/CodeEditor.svelte"
|
import CodeEditor, { DropdownPosition } from "../CodeEditor/CodeEditor.svelte"
|
||||||
import {
|
import {
|
||||||
getHelperCompletions,
|
getHelperCompletions,
|
||||||
|
@ -123,7 +126,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
const updateValue = (val: any) => {
|
const updateValue = (val: any) => {
|
||||||
dispatch("change", val)
|
dispatch("change", readableToRuntimeBinding(bindings, val))
|
||||||
}
|
}
|
||||||
|
|
||||||
const onChangeJSValue = (e: { detail: string }) => {
|
const onChangeJSValue = (e: { detail: string }) => {
|
||||||
|
|
Loading…
Reference in New Issue