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