mirror of
https://github.com/simstudioai/sim.git
synced 2026-09-24 15:45:35 +08:00
Added check to throw error if starter block is disabled
This commit is contained in:
+1
-1
@@ -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')
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user