From 17bca0bcffc07862ed24e5ecc4fc61c1f1d75847 Mon Sep 17 00:00:00 2001 From: Waleed Latif Date: Sat, 15 Feb 2025 10:44:09 -0800 Subject: [PATCH] Added check to throw error if starter block is disabled --- executor/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/executor/index.ts b/executor/index.ts index c6b7c5e433..71f182e36e 100644 --- a/executor/index.ts +++ b/executor/index.ts @@ -37,7 +37,7 @@ export class Executor { // Validate that the workflow has a starter block const starterBlock = this.workflow.blocks.find((block) => block.metadata?.id === 'starter') - if (!starterBlock) { + if (!starterBlock || !starterBlock.enabled) { throw new Error('Workflow must have a starter block') }