fix: remove ticket from all users when deleted

This commit is contained in:
canove
2020-09-25 21:17:41 -03:00
parent 6c63abf29c
commit eb23775948
7 changed files with 25 additions and 12 deletions

View File

@@ -17,8 +17,6 @@ const TicketOptionsMenu = ({ ticket, menuOpen, handleClose, anchorEl }) => {
const handleDeleteTicket = async () => {
try {
await api.delete(`/tickets/${ticket.id}`);
toast.success("Ticket deletado com sucesso.");
history.push("/tickets");
} catch (err) {
toast.error("Erro ao deletar o ticket");
}