Merged in release/2025-05-09 (pull request #2312)
IO-3190 Add nulll coalesce and check for non-intake events. Approved-by: Patrick Fic
This commit is contained in:
@@ -66,7 +66,7 @@ export function ScheduleEventComponent({
|
|||||||
const [popOverVisible, setPopOverVisible] = useState(false);
|
const [popOverVisible, setPopOverVisible] = useState(false);
|
||||||
|
|
||||||
const [getJobDetails] = useLazyQuery(GET_JOB_BY_PK_QUICK_INTAKE, {
|
const [getJobDetails] = useLazyQuery(GET_JOB_BY_PK_QUICK_INTAKE, {
|
||||||
variables: { id: event.job.id },
|
variables: { id: event.job?.id },
|
||||||
onCompleted: (data) => {
|
onCompleted: (data) => {
|
||||||
if (data?.jobs_by_pk) {
|
if (data?.jobs_by_pk) {
|
||||||
const totalHours =
|
const totalHours =
|
||||||
@@ -83,6 +83,7 @@ export function ScheduleEventComponent({
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
fetchPolicy: "network-only"
|
fetchPolicy: "network-only"
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -409,8 +410,10 @@ export function ScheduleEventComponent({
|
|||||||
open={popOverVisible}
|
open={popOverVisible}
|
||||||
onOpenChange={setPopOverVisible}
|
onOpenChange={setPopOverVisible}
|
||||||
onClick={(e) => {
|
onClick={(e) => {
|
||||||
getJobDetails();
|
if (event.job?.id) {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
|
getJobDetails();
|
||||||
|
}
|
||||||
}}
|
}}
|
||||||
getPopupContainer={(trigger) => trigger.parentNode}
|
getPopupContainer={(trigger) => trigger.parentNode}
|
||||||
trigger="click"
|
trigger="click"
|
||||||
|
|||||||
Reference in New Issue
Block a user