Inventory
This commit is contained in:
parent
911fcf2785
commit
d0b9aa60e9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user