more
This commit is contained in:
@@ -59,7 +59,7 @@ const DocEditPage = () => {
|
|||||||
process.env.NODE_ENV === "development"
|
process.env.NODE_ENV === "development"
|
||||||
? process.env.REACT_APP_API_DEV
|
? process.env.REACT_APP_API_DEV
|
||||||
: process.env.REACT_APP_API_PROD;
|
: process.env.REACT_APP_API_PROD;
|
||||||
|
console.log("apiUrl", apiUrl);
|
||||||
const displayCopy =
|
const displayCopy =
|
||||||
state === "ny"
|
state === "ny"
|
||||||
? docEditCopy.NewYork
|
? docEditCopy.NewYork
|
||||||
@@ -255,6 +255,7 @@ const DocEditPage = () => {
|
|||||||
if (responsesCreated > 0) {
|
if (responsesCreated > 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
console.log("~~~~~~~~~~~~~~~~~~~generateResponsesCombined fired");
|
||||||
const docType = String(documentType);
|
const docType = String(documentType);
|
||||||
let mode;
|
let mode;
|
||||||
//TODO: remove isRequests var if not goign to use
|
//TODO: remove isRequests var if not goign to use
|
||||||
@@ -267,7 +268,7 @@ const DocEditPage = () => {
|
|||||||
try {
|
try {
|
||||||
setIsLoading(true);
|
setIsLoading(true);
|
||||||
fetch(
|
fetch(
|
||||||
`https://www.novodraft.ai:4000/genResponseFromArrayCombined/${documentId}/${docType}/${isRequests}`,
|
`${apiUrl}/genResponseFromArrayCombined/${documentId}/${docType}/${isRequests}`,
|
||||||
{
|
{
|
||||||
method: "GET",
|
method: "GET",
|
||||||
}
|
}
|
||||||
@@ -299,6 +300,7 @@ const DocEditPage = () => {
|
|||||||
if (responsesCreated > 0) {
|
if (responsesCreated > 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
console.log("````````````````generateResponses fired");
|
||||||
const docType = String(documentType);
|
const docType = String(documentType);
|
||||||
let mode;
|
let mode;
|
||||||
//TODO: remove isRequests var
|
//TODO: remove isRequests var
|
||||||
@@ -307,7 +309,7 @@ const DocEditPage = () => {
|
|||||||
try {
|
try {
|
||||||
setIsLoading(true);
|
setIsLoading(true);
|
||||||
fetch(
|
fetch(
|
||||||
`https://www.novodraft.ai:4000/genResponseFromArray/${documentId}/${docType}/${isRequests}`,
|
`${apiUrl}/genResponseFromArray/${documentId}/${docType}/${isRequests}`,
|
||||||
{
|
{
|
||||||
method: "GET",
|
method: "GET",
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user