Refresh queries for teacher transactions when updating any transaction

This commit is contained in:
Keannu Bernasol 2024-01-05 20:47:41 +08:00
parent 928782d80d
commit cc5fba070e

View file

@ -42,6 +42,9 @@ export default function EditTransactionModal(props: {
queryClient.invalidateQueries({
queryKey: ["transactions"],
});
queryClient.invalidateQueries({
queryKey: ["transactions_teacher"],
});
queryClient.invalidateQueries({
queryKey: ["transactions", props.id],
});