Fix generated data
This commit is contained in:
@@ -17,9 +17,10 @@ import {
|
||||
export const useScheduleStore = defineStore('schedule', () => {
|
||||
// TODO: Implement functions to dynamically pull this data.
|
||||
const reservations = ref<Reservation[]>(getSampleReservations());
|
||||
const timeblocks = ref<Timeblock[]>(getSampleTimeBlocks());
|
||||
|
||||
const getTimeblocksForDate = (date: string): Timeblock[] => {
|
||||
return getSampleTimeBlocks().filter((b) =>
|
||||
return timeblocks.value.filter((b) =>
|
||||
compareDate(parsed(b.start) as Timestamp, parsed(date) as Timestamp)
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user