This commit is contained in:
Kenneth Jannette
2024-02-21 22:13:11 -06:00
parent 5a70ad2433
commit 6ccab42685

View File

@@ -357,16 +357,16 @@ const DocEditPage = () => {
};
async function createAndReturnDocx() {
setIsBusy(true);
window.scrollTo({ top: 0, behavior: "smooth" });
setIsBusy(true);
const response = await handleCreateDocx();
if (response.status === 200) {
setTimeout(getDocx, 5000);
setTimeout(flipBusy, 2500);
setTimeout(cleanUpDocx, 10000);
} else {
setShowErrorModal(true);
}
setTimeout(flipBusy, 2500);
}
async function cleanUpDocx() {