Sfoglia il codice sorgente

update to hadle error 500

master
Alex Cheung 1 anno fa
parent
commit
5de0aedc8b
2 ha cambiato i file con 6 aggiunte e 0 eliminazioni
  1. +5
    -0
      src/auth/index.js
  2. +1
    -0
      src/pages/Proof/Create_FromApp/ProofForm.js

+ 5
- 0
src/auth/index.js Vedi File

@@ -197,6 +197,11 @@ export const SetupAxiosInterceptors = () => {
await navigate('/login');
// await window.location.reload();
}
if (error.response.status === 500) {
// await dispatch(handleLogoutFunction());
// await navigate('/login');
// await window.location.reload();
}
}

}


+ 1
- 0
src/pages/Proof/Create_FromApp/ProofForm.js Vedi File

@@ -112,6 +112,7 @@ const FormPanel = ({ formData }) => {
setWait(false);
},
onError: function () {
// console.log(error)
setWarningText("Unable to calculate, please input manually.");
setIsWarningPopUp(true);
setWait(false);


Caricamento…
Annulla
Salva