diff --git a/src/lib/app/hooks/useDatatable.jsx b/src/lib/app/hooks/useDatatable.jsx index 2a9d31f..8b097b1 100644 --- a/src/lib/app/hooks/useDatatable.jsx +++ b/src/lib/app/hooks/useDatatable.jsx @@ -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) => { Notifications(directionApp, error.response, t);