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) {
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(

View File

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