mirror of
https://github.com/lemeow125/Borrowing-TrackerFrontend.git
synced 2024-11-17 06:19:27 +08:00
Refresh queries for teacher transactions when updating any transaction
This commit is contained in:
parent
928782d80d
commit
cc5fba070e
1 changed files with 3 additions and 0 deletions
|
@ -42,6 +42,9 @@ export default function EditTransactionModal(props: {
|
|||
queryClient.invalidateQueries({
|
||||
queryKey: ["transactions"],
|
||||
});
|
||||
queryClient.invalidateQueries({
|
||||
queryKey: ["transactions_teacher"],
|
||||
});
|
||||
queryClient.invalidateQueries({
|
||||
queryKey: ["transactions", props.id],
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue