Merged in release/2023-05-26 (pull request #817)
Add manual appointment handling.
This commit is contained in:
@@ -48,7 +48,10 @@ export function ScheduleCalendarComponent({ data, refetch, bodyshop }) {
|
||||
() =>
|
||||
data
|
||||
.filter((d) => d.__typename === "appointments")
|
||||
.map((app) => `${app.job.est_ct_fn} ${app.job.est_ct_ln}`),
|
||||
.map((app) =>
|
||||
`${app.job?.est_ct_fn || ""} ${app.job?.est_ct_ln || ""}`.trim()
|
||||
)
|
||||
.filter((e) => e.length > 0),
|
||||
[data]
|
||||
);
|
||||
|
||||
@@ -59,7 +62,9 @@ export function ScheduleCalendarComponent({ data, refetch, bodyshop }) {
|
||||
? estimatorsFilter.length === 0
|
||||
? true
|
||||
: !!estimatorsFilter.find(
|
||||
(e) => e === `${d.job.est_ct_fn} ${d.job.est_ct_ln}`
|
||||
(e) =>
|
||||
e ===
|
||||
`${d.job?.est_ct_fn || ""} ${d.job?.est_ct_ln || ""}`.trim()
|
||||
)
|
||||
: true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user