more
This commit is contained in:
@@ -248,7 +248,7 @@ const DocEditPage = (props) => {
|
||||
}
|
||||
|
||||
useEffect(() => {
|
||||
if (!docType || docType != "combined-numbered") {
|
||||
if (!docType) {
|
||||
return;
|
||||
}
|
||||
if (responsesCreated < 1) {
|
||||
@@ -258,7 +258,6 @@ const DocEditPage = (props) => {
|
||||
}, [documentId, docType, docType]);
|
||||
|
||||
useEffect(() => {
|
||||
console.log("docType in second useEffect", docType);
|
||||
if (!docType) {
|
||||
return;
|
||||
}
|
||||
@@ -296,6 +295,7 @@ const DocEditPage = (props) => {
|
||||
useEffect(() => {
|
||||
getParsedRogs(documentId, docType)
|
||||
.then((data) => {
|
||||
console.log("data in useEffect for getParsedRogs", data);
|
||||
const respond = data[0].requests.length > 2 ? data[0].requests : null;
|
||||
const resp = respond?.map((item, index) => {
|
||||
// NEVER CHANGE THIS:
|
||||
@@ -349,7 +349,9 @@ const DocEditPage = (props) => {
|
||||
} else {
|
||||
setShowErrorModal(true);
|
||||
}
|
||||
setIsBusy(false);
|
||||
window.scrollTo(0, 0);
|
||||
setTimeout(setIsBusy, 4000, false);
|
||||
//setIsBusy(false);
|
||||
}
|
||||
|
||||
async function getDocx() {
|
||||
|
||||
Reference in New Issue
Block a user