From c1c092080cb564fe2903f6b83805b473638e3660 Mon Sep 17 00:00:00 2001 From: Keannu Bernasol Date: Sun, 7 Jan 2024 11:04:37 +0800 Subject: [PATCH] Refresh available equipments on transaction create --- src/Pages/AddTransactionPage/AddTransactionPage.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Pages/AddTransactionPage/AddTransactionPage.tsx b/src/Pages/AddTransactionPage/AddTransactionPage.tsx index f9c69e1..07d027c 100644 --- a/src/Pages/AddTransactionPage/AddTransactionPage.tsx +++ b/src/Pages/AddTransactionPage/AddTransactionPage.tsx @@ -309,6 +309,9 @@ export default function AddTransactionPage() { queryClient.invalidateQueries({ queryKey: ["equipment_instances"], }); + queryClient.invalidateQueries({ + queryKey: ["equipment_instances_available"], + }); queryClient.invalidateQueries({ queryKey: ["transactions"], });