Skip to content

Commit 55bd461

Browse files
committed
fix: delete issue right click
1 parent bd78d17 commit 55bd461

File tree

1 file changed

+1
-8
lines changed
  • apps/client/components/TicketDetails

1 file changed

+1
-8
lines changed

apps/client/components/TicketDetails/index.tsx

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1276,14 +1276,7 @@ export default function Ticket() {
12761276
onClick={(e) => {
12771277
e.preventDefault();
12781278
if (confirm("Are you sure you want to delete this ticket?")) {
1279-
fetch(`/api/v1/ticket/delete`, {
1280-
method: "POST",
1281-
headers: {
1282-
Authorization: `Bearer ${token}`,
1283-
"Content-Type": "application/json",
1284-
},
1285-
body: JSON.stringify({ id: data.ticket.id }),
1286-
});
1279+
deleteIssue(data.ticket.id);
12871280
}
12881281
}}
12891282
>

0 commit comments

Comments
 (0)