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

Commit

Permalink
chore: refresh activity list on reopen
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidRouyer committed Sep 29, 2023
1 parent 337184a commit e2a8958
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export const TicketChangeAssignment: FC<TicketChangeAssignmentProps> = ({
},
onSettled: () => {
void utils.ticket.byId.invalidate({ id: ticketId });
void utils.ticketActivity.byTicketId.invalidate({ ticketId: ticketId });
},
});

Expand Down Expand Up @@ -95,6 +96,7 @@ export const TicketChangeAssignment: FC<TicketChangeAssignmentProps> = ({
},
onSettled: () => {
void utils.ticket.byId.invalidate({ id: ticketId });
void utils.ticketActivity.byTicketId.invalidate({ ticketId: ticketId });
},
});

Expand Down Expand Up @@ -128,6 +130,7 @@ export const TicketChangeAssignment: FC<TicketChangeAssignmentProps> = ({
},
onSettled: () => {
void utils.ticket.byId.invalidate({ id: ticketId });
void utils.ticketActivity.byTicketId.invalidate({ ticketId: ticketId });
},
});

Expand Down

0 comments on commit e2a8958

Please sign in to comment.