Added check to throw error if starter block is disabled

This commit is contained in:
Waleed Latif
2025-02-15 10:44:10 -08:00
parent 5c8bd0551f
commit 17bca0bcff
+1 -1
View File
@@ -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')
}