fix: Improve reactivity in intervals

This commit is contained in:
2024-06-20 21:52:00 -04:00
parent b7a3608e67
commit e97949cab3
5 changed files with 31 additions and 36 deletions

View File

@@ -92,7 +92,7 @@ const currentUser = useAuthStore().currentUser;
const getSortedIntervals = (timestamp: Timestamp, boat?: Boat): Interval[] => {
return getAvailableIntervals(timestamp, boat)
.concat(boatReservationEvents(timestamp, boat))
.value.concat(boatReservationEvents(timestamp, boat))
.sort((a, b) => Date.parse(a.start) - Date.parse(b.start));
};
// Method declarations