From 6d1db1747a9b7e039c0da02df584966659325399 Mon Sep 17 00:00:00 2001 From: Leonardo Trevizo Date: Wed, 15 Oct 2025 18:51:00 -0600 Subject: [PATCH] Modified fallback value for pages Updated the fallback value for the pages response from Api Signed-off-by: Leonardo Trevizo --- inventory-manager/src/context/DataContext.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inventory-manager/src/context/DataContext.tsx b/inventory-manager/src/context/DataContext.tsx index 866cac3..e82fc35 100644 --- a/inventory-manager/src/context/DataContext.tsx +++ b/inventory-manager/src/context/DataContext.tsx @@ -71,7 +71,7 @@ export const DataProvider: React.FC<{ children: React.ReactNode }> = ({children} const response = await getFilteredProducts(params) setProducts(response.data.products); - setTotal(response.data.totalPages || 50); + setTotal(response.data.totalPages || 1); const fetchedCategories = await getCategories(); setCategories(fetchedCategories.data);