add notification to datatable
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user