Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
chore: refresh ticket activity list on action
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidRouyer committed Sep 29, 2023
1 parent 647e4f1 commit 337184a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export const TicketChangeStatus: FC<TicketChangeStatusProps> = ({
},
onSettled: () => {
void utils.ticket.byId.invalidate({ id: ticketId });
void utils.ticketActivity.byTicketId.invalidate({ ticketId: ticketId });
},
});
const { mutateAsync: reopenTicket } = api.ticket.reopen.useMutation({
Expand Down Expand Up @@ -77,6 +78,7 @@ export const TicketChangeStatus: FC<TicketChangeStatusProps> = ({
},
onSettled: () => {
void utils.ticket.byId.invalidate({ id: ticketId });
void utils.ticketActivity.byTicketId.invalidate({ ticketId: ticketId });
},
});

Expand Down

0 comments on commit 337184a

Please sign in to comment.