File tree Expand file tree Collapse file tree 2 files changed +2
-12
lines changed
packages/backend/src/apps/toolbox/actions/for-each Expand file tree Collapse file tree 2 files changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ const action: IRawAction = {
2929 const { items : rawItems } = $ . step . parameters
3030 const parsedResult = inputSchema . safeParse ( rawItems )
3131
32- if ( ! parsedResult . success ) {
32+ if ( parsedResult . success === false ) {
3333 throw new StepError (
3434 'Invalid input list' ,
3535 'Select a valid input list' ,
Original file line number Diff line number Diff line change @@ -60,18 +60,8 @@ export const inputSchema = z
6060 }
6161
6262 // Handle checkbox input (comma-separated values)
63- const items = trimmed . split ( ',' )
64-
65- if ( items . length === 0 ) {
66- ctx . addIssue ( {
67- code : z . ZodIssueCode . custom ,
68- message : 'No valid items found in comma-separated input' ,
69- } )
70- return z . NEVER
71- }
72-
7363 return {
7464 type : 'checkbox' as const ,
75- items,
65+ items : trimmed . split ( ',' ) ,
7666 }
7767 } )
You can’t perform that action at this time.
0 commit comments