Replaced global selectedAutomation with memoised parameter
This commit is contained in:
parent
47904a2b1e
commit
a9b747d88d
|
@ -63,6 +63,7 @@
|
||||||
import PropField from "./PropField.svelte"
|
import PropField from "./PropField.svelte"
|
||||||
import { utils } from "@budibase/shared-core"
|
import { utils } from "@budibase/shared-core"
|
||||||
|
|
||||||
|
export let automation
|
||||||
export let block
|
export let block
|
||||||
export let testData
|
export let testData
|
||||||
export let schemaProperties
|
export let schemaProperties
|
||||||
|
@ -107,7 +108,7 @@
|
||||||
|
|
||||||
$: automationBindings = automationStore.actions.getPathBindings(
|
$: automationBindings = automationStore.actions.getPathBindings(
|
||||||
$memoBlock.id,
|
$memoBlock.id,
|
||||||
$selectedAutomation
|
automation
|
||||||
)
|
)
|
||||||
$: environmentBindings = buildEnvironmentBindings($memoEnvVariables)
|
$: environmentBindings = buildEnvironmentBindings($memoEnvVariables)
|
||||||
$: bindings = [...automationBindings, ...environmentBindings]
|
$: bindings = [...automationBindings, ...environmentBindings]
|
||||||
|
@ -435,7 +436,7 @@
|
||||||
|
|
||||||
if (
|
if (
|
||||||
Object.hasOwn(update, "tableId") &&
|
Object.hasOwn(update, "tableId") &&
|
||||||
$selectedAutomation.testData?.row?.tableId !== update.tableId
|
automation.testData?.row?.tableId !== update.tableId
|
||||||
) {
|
) {
|
||||||
const reqSchema = getSchemaForDatasourcePlus(update.tableId, {
|
const reqSchema = getSchemaForDatasourcePlus(update.tableId, {
|
||||||
searchableSchema: true,
|
searchableSchema: true,
|
||||||
|
@ -567,7 +568,7 @@
|
||||||
...newTestData,
|
...newTestData,
|
||||||
body: {
|
body: {
|
||||||
...update,
|
...update,
|
||||||
...$selectedAutomation.testData?.body,
|
...automation.testData?.body,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue