From 5b93ff241ce6accb257671eb47649c3afe804d21 Mon Sep 17 00:00:00 2001 From: keannu125 Date: Wed, 8 Mar 2023 23:39:41 +0800 Subject: [PATCH] Polished product page --- src/Routes/Product/Product.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Routes/Product/Product.tsx b/src/Routes/Product/Product.tsx index a4bd8bf..f26a575 100644 --- a/src/Routes/Product/Product.tsx +++ b/src/Routes/Product/Product.tsx @@ -25,6 +25,7 @@ export default function Product() { mutationFn: DeleteProduct, onSuccess: () => { queryClient.invalidateQueries("products"); + queryClient.invalidateQueries("product"); queryClient.invalidateQueries("logs"); }, });