Inventory
This commit is contained in:
parent
911fcf2785
commit
d0b9aa60e9
@ -8,7 +8,7 @@ import debounce from "lodash.debounce";
|
|||||||
const Inventory = () => {
|
const Inventory = () => {
|
||||||
const token = isAutheticated();
|
const token = isAutheticated();
|
||||||
const [loading, setLoading] = useState(false);
|
const [loading, setLoading] = useState(false);
|
||||||
const [inventoryData, setInventoryData] = useState([]);
|
// const [inventoryData, setInventoryData] = useState([]);
|
||||||
const [filteredData, setFilteredData] = useState([]);
|
const [filteredData, setFilteredData] = useState([]);
|
||||||
|
|
||||||
const nameRef = useRef();
|
const nameRef = useRef();
|
||||||
@ -52,7 +52,7 @@ const Inventory = () => {
|
|||||||
updatedAt: entry.updatedAt,
|
updatedAt: entry.updatedAt,
|
||||||
})) || [];
|
})) || [];
|
||||||
|
|
||||||
setInventoryData(transformedData);
|
// setInventoryData(transformedData);
|
||||||
setTotalData(response.data?.total_data || 0);
|
setTotalData(response.data?.total_data || 0);
|
||||||
|
|
||||||
// Apply the filter after data is fetched
|
// Apply the filter after data is fetched
|
||||||
|
Loading…
Reference in New Issue
Block a user