From d0b9aa60e9096a211575c5b8d04b93dae7b37c11 Mon Sep 17 00:00:00 2001 From: Sibunnayak Date: Fri, 16 Aug 2024 11:31:38 +0530 Subject: [PATCH] Inventory --- src/views/Inventory/Inventory.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/Inventory/Inventory.js b/src/views/Inventory/Inventory.js index d32d0b8..c86fcf3 100644 --- a/src/views/Inventory/Inventory.js +++ b/src/views/Inventory/Inventory.js @@ -8,7 +8,7 @@ import debounce from "lodash.debounce"; const Inventory = () => { const token = isAutheticated(); const [loading, setLoading] = useState(false); - const [inventoryData, setInventoryData] = useState([]); + // const [inventoryData, setInventoryData] = useState([]); const [filteredData, setFilteredData] = useState([]); const nameRef = useRef(); @@ -52,7 +52,7 @@ const Inventory = () => { updatedAt: entry.updatedAt, })) || []; - setInventoryData(transformedData); + // setInventoryData(transformedData); setTotalData(response.data?.total_data || 0); // Apply the filter after data is fetched