Urgent fix for team bookings (#2352)
This commit is contained in:
		
							parent
							
								
									2d055327c2
								
							
						
					
					
						commit
						f2436d2a04
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -44,7 +44,7 @@ type getFilteredTimesProps = { | ||||||
| 
 | 
 | ||||||
| export const getFilteredTimes = (props: getFilteredTimesProps) => { | export const getFilteredTimes = (props: getFilteredTimesProps) => { | ||||||
|   const { times, busy, eventLength, beforeBufferTime, afterBufferTime } = props; |   const { times, busy, eventLength, beforeBufferTime, afterBufferTime } = props; | ||||||
|   const finalizationTime = times[times.length - 1].add(eventLength, "minutes"); |   const finalizationTime = times[times.length - 1]?.add(eventLength, "minutes"); | ||||||
|   // Check for conflicts
 |   // Check for conflicts
 | ||||||
|   for (let i = times.length - 1; i >= 0; i -= 1) { |   for (let i = times.length - 1; i >= 0; i -= 1) { | ||||||
|     // const totalSlotLength = eventLength + beforeBufferTime + afterBufferTime;
 |     // const totalSlotLength = eventLength + beforeBufferTime + afterBufferTime;
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue
	
	 Omar López
						Omar López