This commit is contained in:
Kenneth Jannette
2024-03-14 00:04:08 -05:00
parent 0c871e1b44
commit 36cae8556a
2 changed files with 7 additions and 2 deletions

View File

@@ -46,6 +46,9 @@ const CaseDetailsPage = () => {
if (doc.exists) { if (doc.exists) {
const data = doc.data(); const data = doc.data();
if (data.docType != undefined) { if (data.docType != undefined) {
console.log(
"getDocument has returned a docType---------------------------------------------------------------"
);
const caseId = data.parentCaseId; const caseId = data.parentCaseId;
const docType = data.docType; const docType = data.docType;
const clientPosition = data.clientPosition; const clientPosition = data.clientPosition;
@@ -63,13 +66,14 @@ const CaseDetailsPage = () => {
} }
function handleIncomingDiscoveryRequest(docId, isComplaint, clientPosition) { 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); const res = getDocument(docId);
if (res === "combined-numbered") { if (res === "combined-numbered") {
const documentId = docId; const documentId = docId;
} }
} }
// isComplaint = true - NEVER CHANGE THESE ARGS // isComplaint = true - NEVER CHANGE THIS/THESE ARGS
async function generateOutgoingDiscReq(docId, clientPosition) { async function generateOutgoingDiscReq(docId, clientPosition) {
try { try {
const response = await fetch( const response = await fetch(

View File

@@ -287,6 +287,7 @@ const DocEditPage = (props) => {
} }
}, [documentId, docType, docType]); }, [documentId, docType, docType]);
*/ */
useEffect(() => { useEffect(() => {
if (!docType) { if (!docType) {
return; return;