This commit is contained in:
Kenneth Jannette
2024-03-09 12:33:05 -06:00
parent 71213600ff
commit 6a23c84e9f
5 changed files with 13 additions and 10 deletions

View File

@@ -143,7 +143,7 @@ const CaseDetailsPage = () => {
if (docType === "complaint") {
const clientPosition = subCase.clientPosition;
generateOutgoingDiscoveryRequests(docId, radioValue, clientPosition);
setTimeout(handleNavEdit, 20000, docId, caseId);
setTimeout(handleNavEdit, 80000, docId, caseId);
} else {
// try to kick off parsing here
setTimeout(handleNavigate, 40000, docId, caseId);

View File

@@ -69,23 +69,24 @@ const RequestEditPage = () => {
}, [appUserId, documentId, caseId]);
useEffect(() => {
if (!documentId || !documentType) {
if (!documentId) {
return;
}
getOutgoingRequests(documentId)
.then((data) => {
console.log(
"-------------------------data[0].requests",
data[0].requests
);
const merged = [...foundationRogs, ...data[0].requests];
console.log("merged", merged);
const resp = merged?.map((item, index) => {
// NEVER CHANGE THIS:
return { showInputEle: false, text: item.text, index: index };
});
if (!resp.length > 10) {
return;
if (resp.length > 10) {
setRequests(resp);
setProdReq(standardProd);
}
console.log("resp", resp);
setRequests(resp);
setProdReq(standardProd);
})
.catch((err) => console.log(err));
}, [documentId]);
@@ -107,6 +108,7 @@ const RequestEditPage = () => {
}
async function getOutgoingRequests(documentId) {
console.log("getOutgoingRequests fired--------------------");
if (!documentId) {
return;
}

View File

@@ -189,7 +189,7 @@ const UploadModal = (props) => {
const response = await processFile();
saveToDb(response.uuidName);
const docId = response.uuidName;
setTimeout(handleSuccess, 25000, docId, radioValue);
setTimeout(handleSuccess, 1000, docId, radioValue);
return;
} catch (err) {
console.log("err", err);

View File

@@ -7,6 +7,7 @@
border-radius: 10px;
height: 85px;
padding: 0px 0px 0px 15px;
border: 1px solid orange;
}
.doc-header-text {

View File

@@ -126,7 +126,7 @@ section.section-1 {
font-family: Roboto;
color: #fff;
padding: 20px 0px 10px 0px;
font-size: 24px;
font-size: 20px;
font-weight: 100;
max-width: 370px;
line-height: 29px;