Enable optional arguments in point-and-click Sweep (#7580)

* Enable optional arguments in point-and-click Sweep
Fixes #7578

* Fix bug and add e2e test step

* Fix review not triggering bug and e2e test
This commit is contained in:
Pierre Jacquier
2025-06-23 16:17:17 -04:00
committed by GitHub
parent 1e1bdbd6e7
commit 0cd6031aae
6 changed files with 93 additions and 23 deletions

View File

@ -2482,14 +2482,10 @@ export const modelingMachine = setup({
return Promise.reject(new Error(NO_INPUT_PROVIDED_MESSAGE))
}
const { nodeToEdit, sketches, path, sectional } = input
const { ast } = kclManager
const astResult = addSweep({
...input,
ast,
sketches,
path,
sectional,
nodeToEdit,
})
if (err(astResult)) {
return Promise.reject(astResult)