Преглед на файлове

update to hadle error 500

master
Alex Cheung преди 1 година
родител
ревизия
5de0aedc8b
променени са 2 файла, в които са добавени 6 реда и са изтрити 0 реда
  1. +5
    -0
      src/auth/index.js
  2. +1
    -0
      src/pages/Proof/Create_FromApp/ProofForm.js

+ 5
- 0
src/auth/index.js Целия файл

@@ -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 Целия файл

@@ -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);


Зареждане…
Отказ
Запис