more
This commit is contained in:
@@ -47,15 +47,23 @@ const CaseDetailsPage = () => {
|
|||||||
const data = doc.data();
|
const data = doc.data();
|
||||||
if (data.docType != undefined) {
|
if (data.docType != undefined) {
|
||||||
console.log(
|
console.log(
|
||||||
"getDocument has returned a docType---------------------------------------------------------------"
|
"getDocument has returned docType---------------------------------------------------------------",
|
||||||
|
data.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;
|
||||||
const responseGenerations = 0;
|
if (docType != "combined-numbered") {
|
||||||
navigate(
|
const responseGenerations = 1;
|
||||||
`/docedit/${docId}/${caseId}/${docType}/${clientPosition}/${responseGenerations}`
|
navigate(
|
||||||
);
|
`/docedit/${docId}/${caseId}/${docType}/${clientPosition}/${responseGenerations}`
|
||||||
|
);
|
||||||
|
} else if (docType == "combined-numbered") {
|
||||||
|
const responseGenerations = 0;
|
||||||
|
navigate(
|
||||||
|
`/docedit/${docId}/${caseId}/${docType}/${clientPosition}/${responseGenerations}`
|
||||||
|
);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
setTimeout(getDocument, 30000, docId, caseId);
|
setTimeout(getDocument, 30000, docId, caseId);
|
||||||
}
|
}
|
||||||
@@ -67,7 +75,7 @@ const CaseDetailsPage = () => {
|
|||||||
|
|
||||||
function handleIncomingDiscoveryRequest(docId, isComplaint, clientPosition) {
|
function handleIncomingDiscoveryRequest(docId, isComplaint, clientPosition) {
|
||||||
//ONLY TRIGGER FROM THIS SIDE (next page) IF IT IS COMBINED NUMBERED
|
//ONLY TRIGGER FROM THIS SIDE (next page) IF IT IS COMBINED NUMBERED
|
||||||
setTimeout(generateRespIncomingDiscReq, 30000, docId, clientPosition);
|
setTimeout(generateRespIncomingDiscReq, 20000, docId, clientPosition);
|
||||||
const res = getDocument(docId);
|
const res = getDocument(docId);
|
||||||
if (res === "combined-numbered") {
|
if (res === "combined-numbered") {
|
||||||
const documentId = docId;
|
const documentId = docId;
|
||||||
|
|||||||
@@ -281,7 +281,7 @@ const DocEditPage = (props) => {
|
|||||||
if (!docType) {
|
if (!docType) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (responsesCreated < 1) {
|
if (docType == "combined-numbered") {
|
||||||
setIsLoading(true);
|
setIsLoading(true);
|
||||||
generateRespIncominIrregDiscReq(documentId, clientPosition);
|
generateRespIncominIrregDiscReq(documentId, clientPosition);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user