Skip to content

Commit 30c68ae

Browse files
committed
fix: include loops and parallels in validation (addressing review feedback)
1 parent 70dd04d commit 30c68ae

File tree

1 file changed

+2
-0
lines changed
  • apps/sim/app/api/workflows/[id]/deploy

1 file changed

+2
-0
lines changed

apps/sim/app/api/workflows/[id]/deploy/route.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,8 @@ export async function POST(request: NextRequest, { params }: { params: Promise<{
139139
const stateValidation = validateWorkflowState({
140140
blocks: normalizedData.blocks,
141141
edges: normalizedData.edges,
142+
loops: normalizedData.loops || {},
143+
parallels: normalizedData.parallels || {},
142144
})
143145
if (!stateValidation.valid) {
144146
logger.warn(

0 commit comments

Comments
 (0)