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