Merged in feature/IO-2264-schedule-filter (pull request #816)
Add manual appointment handling.
This commit is contained in:
@@ -48,7 +48,10 @@ export function ScheduleCalendarComponent({ data, refetch, bodyshop }) {
|
|||||||
() =>
|
() =>
|
||||||
data
|
data
|
||||||
.filter((d) => d.__typename === "appointments")
|
.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]
|
[data]
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -59,7 +62,9 @@ export function ScheduleCalendarComponent({ data, refetch, bodyshop }) {
|
|||||||
? estimatorsFilter.length === 0
|
? estimatorsFilter.length === 0
|
||||||
? true
|
? true
|
||||||
: !!estimatorsFilter.find(
|
: !!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;
|
: true;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user