diff --git a/packages/builder/src/components/automation/AutomationBuilder/FlowChart/FlowChart.svelte b/packages/builder/src/components/automation/AutomationBuilder/FlowChart/FlowChart.svelte
index 05cae46cfc..4b01616b54 100644
--- a/packages/builder/src/components/automation/AutomationBuilder/FlowChart/FlowChart.svelte
+++ b/packages/builder/src/components/automation/AutomationBuilder/FlowChart/FlowChart.svelte
@@ -84,7 +84,7 @@
out:fly|local={{ x: 500, duration: 500 }}
>
{#if block.stepId !== ActionStepID.LOOP}
-
+
{/if}
{/each}
diff --git a/packages/builder/src/components/automation/AutomationBuilder/FlowChart/FlowItem.svelte b/packages/builder/src/components/automation/AutomationBuilder/FlowChart/FlowItem.svelte
index dd8fa7df46..2d0a86d95c 100644
--- a/packages/builder/src/components/automation/AutomationBuilder/FlowChart/FlowItem.svelte
+++ b/packages/builder/src/components/automation/AutomationBuilder/FlowChart/FlowItem.svelte
@@ -22,6 +22,7 @@
export let block
export let testDataModal
+ export let idx
let selected
let webhookModal
let actionModal
@@ -208,7 +209,7 @@
{/if}
{/if}
-
+
{#if !blockComplete}
diff --git a/packages/builder/src/components/automation/AutomationBuilder/FlowChart/FlowItemHeader.svelte b/packages/builder/src/components/automation/AutomationBuilder/FlowChart/FlowItemHeader.svelte
index 4e2185c792..2f8dbce67e 100644
--- a/packages/builder/src/components/automation/AutomationBuilder/FlowChart/FlowItemHeader.svelte
+++ b/packages/builder/src/components/automation/AutomationBuilder/FlowChart/FlowItemHeader.svelte
@@ -9,6 +9,7 @@
export let showParameters = {}
export let testResult
export let isTrigger
+ export let idx
$: {
if (!testResult) {
@@ -71,12 +72,16 @@
{/if}
+ {#if idx === 0}
+ Trigger
+ {:else}
+ Step {idx}
+ {/if}
{#if isTrigger}
When this happens:
{:else}
Do this:
{/if}
-
{block?.name?.toUpperCase() || ""}
diff --git a/packages/builder/src/components/automation/AutomationBuilder/FlowChart/TestDataModal.svelte b/packages/builder/src/components/automation/AutomationBuilder/FlowChart/TestDataModal.svelte
index 9bbca16802..3beb6cd79b 100644
--- a/packages/builder/src/components/automation/AutomationBuilder/FlowChart/TestDataModal.svelte
+++ b/packages/builder/src/components/automation/AutomationBuilder/FlowChart/TestDataModal.svelte
@@ -57,7 +57,7 @@
)
$automationStore.showTestPanel = true
} catch (error) {
- notifications.error("Error testing notification")
+ notifications.error("Error testing automation")
}
}
diff --git a/packages/builder/src/components/automation/AutomationBuilder/TestDisplay.svelte b/packages/builder/src/components/automation/AutomationBuilder/TestDisplay.svelte
index 3f01dbeebd..bd46c70df5 100644
--- a/packages/builder/src/components/automation/AutomationBuilder/TestDisplay.svelte
+++ b/packages/builder/src/components/automation/AutomationBuilder/TestDisplay.svelte
@@ -52,6 +52,7 @@
bind:showParameters
{block}
isTrigger={idx === 0}
+ {idx}
testResult={filteredResults?.[idx]}
/>
{#if showParameters && showParameters[block.id]}