debug confirm datatable
This commit is contained in:
@@ -46,7 +46,7 @@ const useDataTable = () => {
|
|||||||
const confirmData = useCallback(async (url, rowID) => {
|
const confirmData = useCallback(async (url, rowID) => {
|
||||||
dispatch({ type: "CONFIRM_DATA", url: url, rowID: rowID });
|
dispatch({ type: "CONFIRM_DATA", url: url, rowID: rowID });
|
||||||
axios
|
axios
|
||||||
.post(`${url}/${rowID}`, {
|
.post(`${url}/${rowID}`, null, {
|
||||||
headers: { authorization: `Bearer ${token}` },
|
headers: { authorization: `Bearer ${token}` },
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user