|
|
|
@ -25,7 +25,6 @@ |
|
|
|
import QueryParamSelector from "./QueryParamSelector.svelte" |
|
|
|
import CronBuilder from "./CronBuilder.svelte" |
|
|
|
import Editor from "components/integration/QueryEditor.svelte" |
|
|
|
import { debounce } from "lodash" |
|
|
|
import ModalBindableInput from "components/common/bindings/ModalBindableInput.svelte" |
|
|
|
import FilterDrawer from "components/design/PropertiesPanel/PropertyControls/FilterEditor/FilterDrawer.svelte" |
|
|
|
import { LuceneUtils } from "@budibase/frontend-core" |
|
|
|
@ -54,7 +53,8 @@ |
|
|
|
$: schema = getSchemaForTable(tableId, { searchableSchema: true }).schema |
|
|
|
$: schemaFields = Object.values(schema || {}) |
|
|
|
|
|
|
|
const onChange = debounce(async function (e, key) { |
|
|
|
const onChange = async (e, key) => { |
|
|
|
console.log(e, key) |
|
|
|
try { |
|
|
|
if (isTestModal) { |
|
|
|
// Special case for webhook, as it requires a body, but the schema already brings back the body's contents |
|
|
|
@ -82,7 +82,7 @@ |
|
|
|
} catch (error) { |
|
|
|
notifications.error("Error saving automation") |
|
|
|
} |
|
|
|
}, 800) |
|
|
|
} |
|
|
|
|
|
|
|
function getAvailableBindings(block, automation) { |
|
|
|
if (!block || !automation) { |
|
|
|
@ -205,6 +205,7 @@ |
|
|
|
on:change={e => onChange(e, key)} |
|
|
|
{bindings} |
|
|
|
allowJS={false} |
|
|
|
updateOnChange={false} |
|
|
|
/> |
|
|
|
{/if} |
|
|
|
{:else if value.customType === "query"} |
|
|
|
@ -281,6 +282,7 @@ |
|
|
|
value={inputData[key]} |
|
|
|
on:change={e => onChange(e, key)} |
|
|
|
{bindings} |
|
|
|
updateOnChange={false} |
|
|
|
/> |
|
|
|
</div> |
|
|
|
{/if} |
|
|
|
|