feature/IO-3499-React-19: Bug Fixes / Checkpoint

This commit is contained in:
Dave
2026-01-13 22:28:43 -05:00
parent 7bdfbfabe9
commit 53d556a621
171 changed files with 1128 additions and 954 deletions

View File

@@ -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)
})
});