diff --git a/client/src/components/jobs-detail-header-actions/jobs-detail-header-actions.component.jsx b/client/src/components/jobs-detail-header-actions/jobs-detail-header-actions.component.jsx index 05c779965..7f443a27a 100644 --- a/client/src/components/jobs-detail-header-actions/jobs-detail-header-actions.component.jsx +++ b/client/src/components/jobs-detail-header-actions/jobs-detail-header-actions.component.jsx @@ -609,7 +609,7 @@ export function JobsDetailHeaderActions({ { const start = form.getFieldValue("start"); - form.setFieldsValue({ end: start.add(30, "minutes") }); + form.setFieldsValue({ end: start?.add(30, "minutes") }); }} /> diff --git a/client/src/components/production-list-columns/production-list-columns.empassignment.component.jsx b/client/src/components/production-list-columns/production-list-columns.empassignment.component.jsx index d5927a7a6..d48be1cb5 100644 --- a/client/src/components/production-list-columns/production-list-columns.empassignment.component.jsx +++ b/client/src/components/production-list-columns/production-list-columns.empassignment.component.jsx @@ -144,7 +144,7 @@ export function ProductionListEmpAssignment({ insertAuditTrail, bodyshop, record {record[type] ? (
- {`${theEmployee.first_name || ""} ${theEmployee.last_name || ""}`} + {`${theEmployee?.first_name || ""} ${theEmployee?.last_name || ""}`} handleRemove(type)} />
) : ( diff --git a/client/src/firebase/firebase.utils.js b/client/src/firebase/firebase.utils.js index 8f1518504..a56fb5014 100644 --- a/client/src/firebase/firebase.utils.js +++ b/client/src/firebase/firebase.utils.js @@ -99,7 +99,7 @@ export const logImEXEvent = (eventName, additionalParams, stateProp = null) => { // ); logEvent(analytics, eventName, eventParams); //amplitude.track(eventName, eventParams); - posthog.capture(eventName, eventParams); + //posthog.capture(eventName, eventParams); } finally { //If it fails, just keep going. diff --git a/client/src/utils/sentry.js b/client/src/utils/sentry.js index b12ceb403..2850a066b 100644 --- a/client/src/utils/sentry.js +++ b/client/src/utils/sentry.js @@ -31,7 +31,8 @@ if (!import.meta.env.DEV) { "Module specifier, 'fs' does not start", "Module specifier, 'zlib' does not start with", "Messaging: This browser doesn't support the API's required to use the Firebase SDK.", - "Failed to update a ServiceWorker for scope" + "Failed to update a ServiceWorker for scope", + "Network Error" ], integrations: [ // See docs for support of different versions of variation of react router diff --git a/client/vite.config.js b/client/vite.config.js index 17a05b256..6dd18fb7c 100644 --- a/client/vite.config.js +++ b/client/vite.config.js @@ -24,11 +24,13 @@ const lightningCssTargets = browserslistToTargets( }) ); -const currentDatePST = new Date() - .toLocaleDateString("en-US", { timeZone: "America/Los_Angeles", year: "numeric", month: "2-digit", day: "2-digit" }) - .split("/") - .reverse() - .join("-"); +const pstFormatter = new Intl.DateTimeFormat("en-CA", { + timeZone: "America/Los_Angeles", + year: "numeric", + month: "2-digit", + day: "2-digit" +}); +const currentDatePST = pstFormatter.format(new Date()); const getFormattedTimestamp = () => new Date().toLocaleTimeString("en-US", { hour12: true }).replace("AM", "a.m.").replace("PM", "p.m.");