more
This commit is contained in:
@@ -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(
|
||||||
|
|||||||
@@ -287,6 +287,7 @@ const DocEditPage = (props) => {
|
|||||||
}
|
}
|
||||||
}, [documentId, docType, docType]);
|
}, [documentId, docType, docType]);
|
||||||
*/
|
*/
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (!docType) {
|
if (!docType) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user