From 406d74cd63b5ecb44b702aef289f933b344d6310 Mon Sep 17 00:00:00 2001 From: Kenneth Jannette Date: Thu, 14 Mar 2024 06:08:00 -0500 Subject: [PATCH] more --- src/Components/Document/ReqEditPage.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Components/Document/ReqEditPage.js b/src/Components/Document/ReqEditPage.js index ae0e505..62e0d54 100644 --- a/src/Components/Document/ReqEditPage.js +++ b/src/Components/Document/ReqEditPage.js @@ -53,7 +53,6 @@ const RequestEditPage = () => { process.env.NODE_ENV === "development" ? process.env.REACT_APP_API_DEV : process.env.REACT_APP_API_PROD; - console.log("documentId", documentId); useEffect(() => { if (!appUserId || !documentId) { @@ -127,14 +126,14 @@ const RequestEditPage = () => { async function getDocx() { const docId = documentId; const reqType = documentType; - fetch(`${apiUrl}/getDocx/${docId}/${reqType}`, { + fetch(`${apiUrl}/v1/get-docx/${docId}/${reqType}`, { method: "GET", }).then((response) => { response.blob().then((blob) => { let url = window.URL.createObjectURL(blob); let a = window.document.createElement("a"); a.href = url; - a.download = `${reqType}-repsonse.docx`; + a.download = `interrogatories-req-prod.docx`; a.click(); }); });