CI updates & appointment fixes.

This commit is contained in:
Patrick Fic
2021-05-11 11:32:52 -07:00
parent 22fed1613e
commit 588c47b57a
4 changed files with 19 additions and 3 deletions

View File

@@ -44,8 +44,12 @@ export function ScheduleCalendarHeaderComponent({
}, [events, date]);
const isDayBlocked = useMemo(() => {
return events.filter(
(e) => moment(date).isSame(moment(e.start), "day") && e.block
if (!events) return [];
return (
events &&
events.filter(
(e) => moment(date).isSame(moment(e.start), "day") && e.block
)
);
}, [events, date]);

View File

@@ -109,6 +109,7 @@ export const QUERY_APPOINTMENT_BY_DATE = gql`
end
title
isintake
block
job {
alt_transport
ro_number
@@ -186,6 +187,7 @@ export const QUERY_APPOINTMENTS_BY_JOBID = gql`
arrived
canceled
created_at
block
}
}
`;