diff --git a/packages/builder/src/components/automation/AutomationBuilder/FlowChart/FlowItem.svelte b/packages/builder/src/components/automation/AutomationBuilder/FlowChart/FlowItem.svelte index 5a00b3e790..d1659e51d1 100644 --- a/packages/builder/src/components/automation/AutomationBuilder/FlowChart/FlowItem.svelte +++ b/packages/builder/src/components/automation/AutomationBuilder/FlowChart/FlowItem.svelte @@ -92,7 +92,7 @@ ) loopBlock.blockToLoop = block.id block.loopBlock = loopBlock.id - automationStore.actions.addBlockToAutomation(loopBlock, blockIdx - 1) + automationStore.actions.addBlockToAutomation(loopBlock, blockIdx) await automationStore.actions.save( $automationStore.selectedAutomation?.automation ) @@ -131,16 +131,6 @@