confirm data conflict

This commit is contained in:
2023-07-16 11:02:16 +03:30

View File

@@ -46,10 +46,8 @@ const useDataTable = () => {
const confirmData = useCallback(async (url, rowID) => {
dispatch({ type: "CONFIRM_DATA", url: url, rowID: rowID });
axios
.post(`${url}/${rowID}`, {
headers: {
Authorization: `Bearer ${token}`,
},
.post(`${url}/${rowID}`, null, {
headers: { authorization: `Bearer ${token}` },
})
.then(() => {
setReloadDataTable(true);