feature/IO-3499-React-19: Bug Fixes / Checkpoint
This commit is contained in:
@@ -51,7 +51,7 @@ export function TimeTicketModalContainer({ timeTicketModal, toggleModalVisible,
|
||||
|
||||
const handleFinish = (values) => {
|
||||
setLoading(true);
|
||||
const emps = EmployeeAutoCompleteData.employees.filter((e) => e.id === values.employeeid);
|
||||
const emps = EmployeeAutoCompleteData?.employees.filter((e) => e.id === values.employeeid);
|
||||
if (timeTicketModal.context.id) {
|
||||
updateTicket({
|
||||
variables: {
|
||||
@@ -85,8 +85,8 @@ export function TimeTicketModalContainer({ timeTicketModal, toggleModalVisible,
|
||||
};
|
||||
|
||||
const handleMutationSuccess = () => {
|
||||
notification["success"]({
|
||||
message: t("timetickets.successes.created")
|
||||
notification.success({
|
||||
title: t("timetickets.successes.created")
|
||||
});
|
||||
|
||||
// Refresh parent screens (Job Labor tab, etc.)
|
||||
@@ -112,8 +112,8 @@ export function TimeTicketModalContainer({ timeTicketModal, toggleModalVisible,
|
||||
|
||||
const handleMutationError = (error) => {
|
||||
setEnterAgain(false);
|
||||
notification["error"]({
|
||||
message: t("timetickets.errors.creating", {
|
||||
notification.error({
|
||||
title: t("timetickets.errors.creating", {
|
||||
message: JSON.stringify(error)
|
||||
})
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user