diff --git a/packages/builder/src/builderStore/store/automation/index.js b/packages/builder/src/builderStore/store/automation/index.js index 1b94f9b05b..ba2458f414 100644 --- a/packages/builder/src/builderStore/store/automation/index.js +++ b/packages/builder/src/builderStore/store/automation/index.js @@ -22,9 +22,8 @@ export const getAutomationStore = () => { return store } -function updateReferencesInObject(obj, modifiedIndex, action) { +const updateReferencesInObject = (obj, modifiedIndex, action) => { const regex = /{{\s*steps\.(\d+)\./g - for (const key in obj) { if (typeof obj[key] === "string") { let matches @@ -48,7 +47,7 @@ function updateReferencesInObject(obj, modifiedIndex, action) { } } -function updateStepReferences(steps, modifiedIndex, action) { +const updateStepReferences = (steps, modifiedIndex, action) => { steps.forEach(step => { updateReferencesInObject(step.inputs, modifiedIndex, action) }) @@ -296,7 +295,7 @@ const automationActions = store => ({ newAutomation.definition.steps = newAutomation.definition.steps.filter( step => step.id !== block.id ) - delete newAutomation.definition.stepNames[block.id] + delete newAutomation.definition.stepNames?.[block.id] } try { updateStepReferences(newAutomation.definition.steps, blockIdx, "delete") diff --git a/packages/builder/src/components/automation/AutomationBuilder/FlowChart/FlowChart.svelte b/packages/builder/src/components/automation/AutomationBuilder/FlowChart/FlowChart.svelte index d45fe96ad7..a3c6a06690 100644 --- a/packages/builder/src/components/automation/AutomationBuilder/FlowChart/FlowChart.svelte +++ b/packages/builder/src/components/automation/AutomationBuilder/FlowChart/FlowChart.svelte @@ -15,8 +15,7 @@ let testDataModal let confirmDeleteDialog let scrolling = false - $: blocks = getBlocks(automation) - + $: blocks = getBlocks(automation).filter(x => x.stepId !== ActionStepID.LOOP) const getBlocks = automation => { let blocks = [] if (automation.definition.trigger) { @@ -138,9 +137,9 @@ .header.scrolling { background: var(--background); - z-index: -1; border-bottom: var(--border-light); - background: var(--background); + border-left: var(--border-light); + z-index: 1; } .header { diff --git a/packages/builder/src/components/automation/AutomationBuilder/FlowChart/FlowItem.svelte b/packages/builder/src/components/automation/AutomationBuilder/FlowChart/FlowItem.svelte index f494728cb4..9692154e31 100644 --- a/packages/builder/src/components/automation/AutomationBuilder/FlowChart/FlowItem.svelte +++ b/packages/builder/src/components/automation/AutomationBuilder/FlowChart/FlowItem.svelte @@ -7,9 +7,9 @@ Detail, Modal, Button, - ActionButton, notifications, Label, + AbsTooltip, } from "@budibase/bbui" import AutomationBlockSetup from "../../SetupPanel/AutomationBlockSetup.svelte" import CreateWebhookModal from "components/automation/Shared/CreateWebhookModal.svelte" @@ -125,6 +125,10 @@