@@ -24,7 +24,6 @@ const CaseTypePage = () => {
|
||||
const [radioValue, setRadioValue] = useState("");
|
||||
const [selectedCaseTags, setSelectedCaseTags] = useState([]);
|
||||
const [isBusy, setIsBusy] = useState(false);
|
||||
|
||||
const [contactEmailError, setContactEmailError] = useState("");
|
||||
const [leadAttorneyError, setLeadAttorneyError] = useState("");
|
||||
const [caseTypeError, setCaseTypeError] = useState(false);
|
||||
|
||||
@@ -266,7 +266,7 @@ const DocEditPage = () => {
|
||||
try {
|
||||
setIsLoading(true);
|
||||
fetch(
|
||||
`${apiUrl}/genResponseFromArrayCombined/${documentId}/${docType}/${isRequests}`,
|
||||
`https://www.novodraft.ai:4000/genResponseFromArrayCombined/${documentId}/${docType}/${isRequests}`,
|
||||
{
|
||||
method: "GET",
|
||||
}
|
||||
@@ -305,7 +305,7 @@ const DocEditPage = () => {
|
||||
try {
|
||||
setIsLoading(true);
|
||||
fetch(
|
||||
`${apiUrl}/genResponseFromArray/${documentId}/${docType}/${isRequests}`,
|
||||
`https://www.novodraft.ai:4000/genResponseFromArray/${documentId}/${docType}/${isRequests}`,
|
||||
{
|
||||
method: "GET",
|
||||
}
|
||||
|
||||
@@ -42,6 +42,9 @@ const DocumentListPage = ({ perPage }) => {
|
||||
? process.env.REACT_APP_API_DEV
|
||||
: process.env.REACT_APP_API_PROD;
|
||||
|
||||
console.log("process.env.NODE_ENV", process.env.NODE_ENV);
|
||||
console.log("process.env.REACT_APP_API_PROD", process.env.REACT_APP_API_PROD);
|
||||
console.log("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~apiUrl", apiUrl);
|
||||
useEffect(() => {
|
||||
if (count.current == null) {
|
||||
setIsMobile(window.innerWidth < 440);
|
||||
|
||||
@@ -73,7 +73,7 @@ const UploadModal = (props) => {
|
||||
async function uploadFile(file) {
|
||||
try {
|
||||
const response = await fetch(
|
||||
`https://www.novodraft.ai:3001/v1/parseNewDoc`,
|
||||
`https://www.novodraft.ai:3001/parseNewDoc`,
|
||||
{
|
||||
method: "POST",
|
||||
body: file,
|
||||
|
||||
Reference in New Issue
Block a user