diff --git a/packages/builder/src/builderStore/store/workflow/Workflow.js b/packages/builder/src/builderStore/store/workflow/Workflow.js
index 4a7daa5279..2b495ef49b 100644
--- a/packages/builder/src/builderStore/store/workflow/Workflow.js
+++ b/packages/builder/src/builderStore/store/workflow/Workflow.js
@@ -40,8 +40,13 @@ export default class Workflow {
block = block.next
}
- // delete the block found
- previous.next = block.next || {}
+ // delete the block matching your id
+ if (!block.next) {
+ delete previous.next
+ } else {
+ previous.next = block.next
+ }
+
}
createUiTree() {
diff --git a/packages/builder/src/pages/[application]/workflow/SetupPanel/SetupPanel.svelte b/packages/builder/src/pages/[application]/workflow/SetupPanel/SetupPanel.svelte
index a7417002de..d91eb3ffaf 100644
--- a/packages/builder/src/pages/[application]/workflow/SetupPanel/SetupPanel.svelte
+++ b/packages/builder/src/pages/[application]/workflow/SetupPanel/SetupPanel.svelte
@@ -1,14 +1,15 @@
@@ -31,15 +32,15 @@