From 508b8ee1d6f41aeb218e54c1729371cdce997df5 Mon Sep 17 00:00:00 2001 From: Wikzyy Date: Tue, 8 Apr 2025 11:51:39 +0700 Subject: [PATCH] fix update product - from change row. `products_id` to `id` --- src/pages/master/products/hooks/ManageProductsContext.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pages/master/products/hooks/ManageProductsContext.tsx b/src/pages/master/products/hooks/ManageProductsContext.tsx index 83861c5..541c710 100644 --- a/src/pages/master/products/hooks/ManageProductsContext.tsx +++ b/src/pages/master/products/hooks/ManageProductsContext.tsx @@ -126,13 +126,13 @@ const ManageProductsContextProvider = ({ children }: { children: React.ReactNode <> @@ -160,7 +160,7 @@ const ManageProductsContextProvider = ({ children }: { children: React.ReactNode order_direction: sorting[0].desc == false ? 'ASC' : 'DESC', filter: JSON.stringify(filter) }); - console.log(response?.data); + // console.log(response?.data); setProducts(response?.data.list); return { data: response?.data.list, totalCount: response?.data.total_count }; } catch (error) {