more
This commit is contained in:
@@ -239,7 +239,9 @@ const RequestEditPage = () => {
|
|||||||
const res = await postEditedResponses();
|
const res = await postEditedResponses();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const response = await fetch(`${apiUrl}/v1/generate-request-docx/`, {
|
const response = await fetch(
|
||||||
|
`${apiUrl}/v1/generate-request-docx/${docId}`,
|
||||||
|
{
|
||||||
method: "POST",
|
method: "POST",
|
||||||
headers: {
|
headers: {
|
||||||
Accept: "application/json",
|
Accept: "application/json",
|
||||||
@@ -248,7 +250,8 @@ const RequestEditPage = () => {
|
|||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
docId: docId,
|
docId: docId,
|
||||||
}),
|
}),
|
||||||
});
|
}
|
||||||
|
);
|
||||||
return response;
|
return response;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("Error sending requests to the server:", error);
|
console.error("Error sending requests to the server:", error);
|
||||||
|
|||||||
Reference in New Issue
Block a user