Merge branch 'develop' of https://gitlab.com/witel3/loan-facilities-expert into feature/machinary_office_implement

This commit is contained in:
2023-07-16 16:46:19 +03:30
2 changed files with 92 additions and 90 deletions

View File

@@ -49,8 +49,9 @@ const useDataTable = () => {
.post(`${url}/${rowID}`, values, {
headers: { authorization: `Bearer ${token}` },
})
.then(() => {
.then((response) => {
setReloadDataTable(true);
Notifications(directionApp, response, t);
})
.catch((error) => {
Notifications(directionApp, error.response, t);
@@ -63,8 +64,9 @@ const useDataTable = () => {
.post(`${url}/${rowID}`, values, {
headers: { authorization: `Bearer ${token}` },
})
.then(() => {
.then((response) => {
setReloadDataTable(true);
Notifications(directionApp, response, t);
})
.catch((error) => {
console.log(error);