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

View File

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

View File

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

View File

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

View File

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