File tree Expand file tree Collapse file tree 1 file changed +12
-8
lines changed 
backend/src/record/recurrent-record Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -200,14 +200,18 @@ export class RecurrentRecordService {
200200        const  date  =  dayjs ( invocation . nextInvocation ) ; 
201201        return  date . month ( )  ===  month  &&  date . year ( )  ===  year ; 
202202      } ) ; 
203-       return  nextInvocationsInMonth . map ( ( invocation )  =>  { 
204-         const  record  =  records . find ( ( record )  =>  record . id  ===  invocation . id ) ; 
205-         return  { 
206-           ...record , 
207-           periodicity : record . periodicity  as  Periodicity , 
208-           nextInvocation : invocation . nextInvocation , 
209-         } ; 
210-       } ) ; 
203+       return  nextInvocationsInMonth 
204+         . map ( ( invocation )  =>  { 
205+           const  record  =  records . find ( ( record )  =>  record . id  ===  invocation . id ) ; 
206+           if  ( record )  { 
207+             return  { 
208+               ...record , 
209+               periodicity : record . periodicity  as  Periodicity , 
210+               nextInvocation : invocation . nextInvocation , 
211+             } ; 
212+           } 
213+         } ) 
214+         . filter ( ( record )  =>  ! ! record ) ; 
211215    } 
212216  } 
213217
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments