From 457bef64c4f2d8ac135e1f1f16ca9a4d8c6ed33d Mon Sep 17 00:00:00 2001 From: AminGhasempoor Date: Tue, 14 Jul 2026 14:55:30 +0330 Subject: [PATCH] add deleteviolations --- .../violations/Actions/DeleteViolation/DeleteContent.jsx | 2 +- .../dashboard/roadMissions/violations/RowActions/index.jsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/dashboard/roadMissions/violations/Actions/DeleteViolation/DeleteContent.jsx b/src/components/dashboard/roadMissions/violations/Actions/DeleteViolation/DeleteContent.jsx index 004dc4d..6485cb7 100644 --- a/src/components/dashboard/roadMissions/violations/Actions/DeleteViolation/DeleteContent.jsx +++ b/src/components/dashboard/roadMissions/violations/Actions/DeleteViolation/DeleteContent.jsx @@ -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(() => { diff --git a/src/components/dashboard/roadMissions/violations/RowActions/index.jsx b/src/components/dashboard/roadMissions/violations/RowActions/index.jsx index 3725894..b58b41f 100644 --- a/src/components/dashboard/roadMissions/violations/RowActions/index.jsx +++ b/src/components/dashboard/roadMissions/violations/RowActions/index.jsx @@ -8,7 +8,7 @@ const RowActions = ({ row, mutate }) => { <> {!row.original.mileage && } {/*{canEdit && }*/} - + ); };