diff --git a/client/src/App/App.container.jsx b/client/src/App/App.container.jsx index 63db26f82..42091e595 100644 --- a/client/src/App/App.container.jsx +++ b/client/src/App/App.container.jsx @@ -27,7 +27,6 @@ export const tracker = new Tracker({ onStart: async ({ sessionID }) => { const user = await getCurrentUser(); if (user) tracker.setUserID(user.email); - console.log("ORS SESSION ", sessionID, user && user.email); }, }); diff --git a/client/src/App/App.jsx b/client/src/App/App.jsx index cab3be913..6a2bf774a 100644 --- a/client/src/App/App.jsx +++ b/client/src/App/App.jsx @@ -53,7 +53,6 @@ export function App({ checkUserSession, currentUser, online, setOnline }) { const { t } = useTranslation(); window.addEventListener("offline", function (e) { - console.log("Internet connection lost."); setOnline(false); }); diff --git a/client/src/components/bill-form/bill-form.lines.component.jsx b/client/src/components/bill-form/bill-form.lines.component.jsx index 03afc6b9a..22aa62f23 100644 --- a/client/src/components/bill-form/bill-form.lines.component.jsx +++ b/client/src/components/bill-form/bill-form.lines.component.jsx @@ -157,16 +157,6 @@ export function BillEnterModalLinesComponent({ billlines: getFieldsValue("billlines").billlines.map( (item, idx) => { if (idx === index) { - console.log( - "Found and setting.", - !!item.actual_cost - ? item.actual_cost - : Math.round( - (parseFloat(e.target.value) * (1 - discount) + - Number.EPSILON) * - 100 - ) / 100 - ); return { ...item, actual_cost: !!item.actual_cost diff --git a/client/src/components/bill-line-search-select/bill-line-search-select.component.jsx b/client/src/components/bill-line-search-select/bill-line-search-select.component.jsx index dd5558f85..e470fce33 100644 --- a/client/src/components/bill-line-search-select/bill-line-search-select.component.jsx +++ b/client/src/components/bill-line-search-select/bill-line-search-select.component.jsx @@ -14,7 +14,6 @@ const BillLineSearchSelect = ({ options, disabled, ...restProps }, ref) => { showSearch // optionFilterProp="line_desc" filterOption={(inputValue, option) => { - console.log(inputValue); return ( (option.line_desc && option.line_desc diff --git a/client/src/components/chat-new-conversation/chat-new-conversation.component.jsx b/client/src/components/chat-new-conversation/chat-new-conversation.component.jsx index 907c5149c..563b6d005 100644 --- a/client/src/components/chat-new-conversation/chat-new-conversation.component.jsx +++ b/client/src/components/chat-new-conversation/chat-new-conversation.component.jsx @@ -20,7 +20,6 @@ export function ChatNewConversation({ openChatByPhone }) { const { t } = useTranslation(); const [form] = Form.useForm(); const handleFinish = (values) => { - console.log("values :>> ", values); openChatByPhone({ phone_num: values.phoneNumber }); form.resetFields(); }; diff --git a/client/src/components/dashboard-grid/dashboard-grid.component.jsx b/client/src/components/dashboard-grid/dashboard-grid.component.jsx index b67526eea..6d1ec5a66 100644 --- a/client/src/components/dashboard-grid/dashboard-grid.component.jsx +++ b/client/src/components/dashboard-grid/dashboard-grid.component.jsx @@ -86,10 +86,7 @@ export function DashboardGridComponent({ currentUser, bodyshop }) { const handleRemoveComponent = (key) => { logImEXEvent("dashboard_remove_component", { name: key }); const idxToRemove = state.items.findIndex((i) => i.i === key); - console.log( - "π ~ file: dashboard-grid.component.jsx ~ line 81 ~ idxToRemove", - idxToRemove - ); + const items = _.cloneDeep(state.items); items.splice(idxToRemove, 1); diff --git a/client/src/components/dms-cdk-makes/dms-cdk-makes.refetch.component.jsx b/client/src/components/dms-cdk-makes/dms-cdk-makes.refetch.component.jsx index f56856dfc..c0d1ee4d9 100644 --- a/client/src/components/dms-cdk-makes/dms-cdk-makes.refetch.component.jsx +++ b/client/src/components/dms-cdk-makes/dms-cdk-makes.refetch.component.jsx @@ -23,7 +23,7 @@ export function DmsCdkMakesRefetch({ bodyshop, form, socket }) { cdk_dealerid: bodyshop.cdk_dealerid, bodyshopid: bodyshop.id, }); - console.log(response); + setLoading(false); }; return ( diff --git a/client/src/components/document-editor/document-editor.component.jsx b/client/src/components/document-editor/document-editor.component.jsx index cb12c1aec..ab2733c13 100644 --- a/client/src/components/document-editor/document-editor.component.jsx +++ b/client/src/components/document-editor/document-editor.component.jsx @@ -58,11 +58,9 @@ export function DocumentEditorComponent({ currentUser, bodyshop, document }) { if (imgRef.current !== null) { // create a marker.js MarkerArea markerArea.current = new markerjs2.MarkerArea(imgRef.current); - console.log(`markerArea.current`, markerArea.current); + // attach an event handler to assign annotated image back to our image element - markerArea.current.addCloseEventListener((closeEvent) => { - console.log("Close Event", closeEvent); - }); + markerArea.current.addCloseEventListener((closeEvent) => {}); markerArea.current.addRenderEventListener((dataUrl) => { imgRef.current.src = dataUrl; diff --git a/client/src/components/documents-upload/documents-upload.utility.js b/client/src/components/documents-upload/documents-upload.utility.js index bca78f094..f5ce23618 100644 --- a/client/src/components/documents-upload/documents-upload.utility.js +++ b/client/src/components/documents-upload/documents-upload.utility.js @@ -14,8 +14,6 @@ var cleanAxios = axios.create(); cleanAxios.interceptors.request.eject(axiosAuthInterceptorId); export const handleUpload = (ev, context) => { - console.log("Handling Upload", ev); - logImEXEvent("document_upload", { filetype: ev.file.type }); const { onError, onSuccess, onProgress } = ev; @@ -61,7 +59,7 @@ export const uploadToCloudinary = async ( // let eager = process.env.REACT_APP_CLOUDINARY_THUMB_TRANSFORMATIONS; //Get the signed url. - console.log("fileType", fileType); + const upload_preset = fileType.startsWith("video") ? "incoming_upload_video" : "incoming_upload"; @@ -74,7 +72,6 @@ export const uploadToCloudinary = async ( }); if (signedURLResponse.status !== 200) { - console.log("Error Getting Signed URL", signedURLResponse.statusText); if (!!onError) onError(signedURLResponse.statusText); notification["error"]({ message: i18n.t("documents.errors.getpresignurl", { @@ -113,13 +110,8 @@ export const uploadToCloudinary = async ( ...options, } ); - console.log("Upload Response", cloudinaryUploadResponse.data); if (cloudinaryUploadResponse.status !== 200) { - console.log( - "Error uploading to cloudinary.", - cloudinaryUploadResponse.statusText - ); if (!!onError) onError(cloudinaryUploadResponse.statusText); notification["error"]({ message: i18n.t("documents.errors.insert", { diff --git a/client/src/components/email-documents/email-documents.component.jsx b/client/src/components/email-documents/email-documents.component.jsx index 4769df3f6..bd1a0f09e 100644 --- a/client/src/components/email-documents/email-documents.component.jsx +++ b/client/src/components/email-documents/email-documents.component.jsx @@ -35,10 +35,6 @@ export function EmailDocumentsComponent({ }, skip: !emailConfig.jobid, }); - console.log( - "π ~ file: email-documents.component.jsx ~ line 38 ~ emailConfig", - emailConfig - ); return (