diff --git a/src/components/room-booking/timeline/BookingTimeline.vue b/src/components/room-booking/timeline/BookingTimeline.vue index 6dbbb9b..d152e17 100644 --- a/src/components/room-booking/timeline/BookingTimeline.vue +++ b/src/components/room-booking/timeline/BookingTimeline.vue @@ -314,7 +314,10 @@ function rangeIntersectingBookings( if (l !== r) return []; - if (bookings[l].startsAt.getTime() >= bMs) + if ( + bookings[l].startsAt.getTime() >= bMs || + bookings[l].endsAt.getTime() <= aMs + ) // First and doesn't intersect. return []; @@ -568,6 +571,7 @@ function validSlotByState(state: InteractionState): Slot | null { state.hoverAt.room.id, ); + console.log({ range }); if (!range) return null; return {