Skip to content

Commit

Permalink
fix: delete issue right click
Browse files Browse the repository at this point in the history
  • Loading branch information
potts99 committed Nov 9, 2024
1 parent bd78d17 commit 55bd461
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions apps/client/components/TicketDetails/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1276,14 +1276,7 @@ export default function Ticket() {
onClick={(e) => {
e.preventDefault();
if (confirm("Are you sure you want to delete this ticket?")) {
fetch(`/api/v1/ticket/delete`, {
method: "POST",
headers: {
Authorization: `Bearer ${token}`,
"Content-Type": "application/json",
},
body: JSON.stringify({ id: data.ticket.id }),
});
deleteIssue(data.ticket.id);
}
}}
>
Expand Down

0 comments on commit 55bd461

Please sign in to comment.