File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ const requestBodySchema = baseBodySchema
85
85
start : z . coerce . date ( ) ,
86
86
end : z . coerce . date ( ) ,
87
87
repeats : z . optional ( z . enum ( repeatOptions ) ) . nullable ( ) ,
88
- repeatEnds : z . date ( ) . optional ( ) ,
88
+ repeatEnds : z . coerce . date ( ) . optional ( ) ,
89
89
repeatExcludes : z . array ( z . coerce . date ( ) ) . max ( 100 ) . optional ( ) ,
90
90
} )
91
91
. refine ( ( data ) => ( data . repeatEnds ? data . repeats !== undefined : true ) , {
@@ -222,7 +222,7 @@ export const ManageEventPage: React.FC = () => {
222
222
repeatExcludes :
223
223
values . repeatExcludes && values . repeatExcludes . length > 0
224
224
? values . repeatExcludes . map ( ( x ) => dayjs ( x ) . format ( "YYYY-MM-DD" ) )
225
- : [ ] ,
225
+ : undefined ,
226
226
repeats : values . repeats ? values . repeats : undefined ,
227
227
metadata :
228
228
Object . keys ( values . metadata || { } ) . length > 0
You can’t perform that action at this time.
0 commit comments