diff --git a/packages/builder/src/components/workflow/SetupPanel/SetupPanel.svelte b/packages/builder/src/components/workflow/SetupPanel/SetupPanel.svelte index e7419a05df..b309f72c2c 100644 --- a/packages/builder/src/components/workflow/SetupPanel/SetupPanel.svelte +++ b/packages/builder/src/components/workflow/SetupPanel/SetupPanel.svelte @@ -10,8 +10,10 @@ let selectedTab = "SETUP" - $: workflow = - $workflowStore.selectedWorkflow && $workflowStore.selectedWorkflow.workflow + $: workflow = $workflowStore.selectedWorkflow?.workflow + $: allowDeleteBlock = + $workflowStore.selectedBlock?.type !== "TRIGGER" || + !workflow?.definition?.steps?.length function deleteWorkflow() { open( @@ -60,7 +62,13 @@ - + {:else if $workflowStore.selectedWorkflow}