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
8585    start : z . coerce . date ( ) , 
8686    end : z . coerce . date ( ) , 
8787    repeats : z . optional ( z . enum ( repeatOptions ) ) . nullable ( ) , 
88-     repeatEnds : z . date ( ) . optional ( ) , 
88+     repeatEnds : z . coerce . date ( ) . optional ( ) , 
8989    repeatExcludes : z . array ( z . coerce . date ( ) ) . max ( 100 ) . optional ( ) , 
9090  } ) 
9191  . refine ( ( data )  =>  ( data . repeatEnds  ? data . repeats  !==  undefined  : true ) ,  { 
@@ -222,7 +222,7 @@ export const ManageEventPage: React.FC = () => {
222222        repeatExcludes :
223223          values . repeatExcludes  &&  values . repeatExcludes . length  >  0 
224224            ? values . repeatExcludes . map ( ( x )  =>  dayjs ( x ) . format ( "YYYY-MM-DD" ) ) 
225-             : [ ] , 
225+             : undefined , 
226226        repeats : values . repeats  ? values . repeats  : undefined , 
227227        metadata :
228228          Object . keys ( values . metadata  ||  { } ) . length  >  0 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments