From 36cae8556a286eb50cbcba1693b7aa853f5a8e8e Mon Sep 17 00:00:00 2001 From: Kenneth Jannette Date: Thu, 14 Mar 2024 00:04:08 -0500 Subject: [PATCH] more --- src/Components/Case/CaseDetailsPage.js | 8 ++++++-- src/Components/Document/DocEditPage.js | 1 + 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/Components/Case/CaseDetailsPage.js b/src/Components/Case/CaseDetailsPage.js index f10bf96..d5fc4d7 100644 --- a/src/Components/Case/CaseDetailsPage.js +++ b/src/Components/Case/CaseDetailsPage.js @@ -46,6 +46,9 @@ const CaseDetailsPage = () => { if (doc.exists) { const data = doc.data(); if (data.docType != undefined) { + console.log( + "getDocument has returned a docType---------------------------------------------------------------" + ); const caseId = data.parentCaseId; const docType = data.docType; const clientPosition = data.clientPosition; @@ -63,13 +66,14 @@ const CaseDetailsPage = () => { } function handleIncomingDiscoveryRequest(docId, isComplaint, clientPosition) { - generateRespIncomingDiscReq(docId, clientPosition); + //DONT WANT< RIGHT - ONLY TRIGGER FROM THIS SIDE IF IT IS COMBINED NUMBERED + //generateRespIncomingDiscReq(docId, clientPosition); const res = getDocument(docId); if (res === "combined-numbered") { const documentId = docId; } } - // isComplaint = true - NEVER CHANGE THESE ARGS + // isComplaint = true - NEVER CHANGE THIS/THESE ARGS async function generateOutgoingDiscReq(docId, clientPosition) { try { const response = await fetch( diff --git a/src/Components/Document/DocEditPage.js b/src/Components/Document/DocEditPage.js index c132631..4a092b6 100644 --- a/src/Components/Document/DocEditPage.js +++ b/src/Components/Document/DocEditPage.js @@ -287,6 +287,7 @@ const DocEditPage = (props) => { } }, [documentId, docType, docType]); */ + useEffect(() => { if (!docType) { return;