This commit is contained in:
Dean 2025-03-13 11:11:47 +00:00
parent 12e87f0e52
commit a26fbf3edd
2 changed files with 7 additions and 10 deletions

View File

@ -56,10 +56,7 @@
memo,
fetchData,
} from "@budibase/frontend-core"
import {
getSchemaForDatasourcePlus,
readableToRuntimeBinding,
} from "@/dataBinding"
import { getSchemaForDatasourcePlus } from "@/dataBinding"
import { TriggerStepID, ActionStepID } from "@/constants/backend/automations"
import { onMount, createEventDispatcher } from "svelte"
import { writable } from "svelte/store"
@ -1037,10 +1034,7 @@
{bindings}
{schema}
panel={AutomationBindingPanel}
on:change={e =>
onChange({
[key]: readableToRuntimeBinding(bindings, e.detail),
})}
on:change={e => onChange({ [key]: e.detail })}
context={$memoContext}
value={inputData[key]}
/>

View File

@ -5,7 +5,10 @@
encodeJSBinding,
processObjectSync,
} from "@budibase/string-templates"
import { runtimeToReadableBinding } from "@/dataBinding"
import {
runtimeToReadableBinding,
readableToRuntimeBinding,
} from "@/dataBinding"
import CodeEditor, { DropdownPosition } from "../CodeEditor/CodeEditor.svelte"
import {
getHelperCompletions,
@ -123,7 +126,7 @@
}
const updateValue = (val: any) => {
dispatch("change", val)
dispatch("change", readableToRuntimeBinding(bindings, val))
}
const onChangeJSValue = (e: { detail: string }) => {