Skip to content

Commit 4de9121

Browse files
committed
fix insert into subflow case:
1 parent 2f9a076 commit 4de9121

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

apps/sim/lib/copilot/tools/server/workflow/edit-workflow.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2302,6 +2302,15 @@ function applyOperationsToWorkflowState(
23022302
existingBlock.subBlocks[key].value = sanitizedValue
23032303
}
23042304
})
2305+
2306+
const existingBlockConfig = getBlock(existingBlock.type)
2307+
if (existingBlockConfig) {
2308+
updateCanonicalModesForInputs(
2309+
existingBlock,
2310+
Object.keys(validationResult.validInputs),
2311+
existingBlockConfig
2312+
)
2313+
}
23052314
}
23062315
} else {
23072316
// Special container types (loop, parallel) are not in the block registry but are valid

0 commit comments

Comments
 (0)