bugfix/delete_violations #14

Merged
aminghasempoor merged 5 commits from bugfix/delete_violations into develop 2026-07-14 11:26:11 +00:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 457bef64c4 - Show all commits

View File

@@ -8,7 +8,7 @@ const DeleteContent = ({ rowId, mutate, setOpenDeleteDialog }) => {
const requestServer = useRequest({ notificationSuccess: true });
const handleClick = () => {
setSubmitting(true);
requestServer(`${DELETE_VIOLATION}/${rowId}`, "post", {
requestServer(`${DELETE_VIOLATION}/${rowId}`, "delete", {
hasSidebarUpdate: true,
})
.then(() => {

View File

@@ -8,7 +8,7 @@ const RowActions = ({ row, mutate }) => {
<>
{!row.original.mileage && <EditViolation row={row} mutate={mutate} rowId={row.getValue("id")} />}
{/*{canEdit && <CreateWithoutProcess row={row} mutate={mutate} />}*/}
<DeleteViolation />
<DeleteViolation rowId={row.getValue("id")} mutate={mutate} />
</>
);
};