bug fix
This commit is contained in:
parent
7bba1cdc22
commit
957cfd5fd9
@ -20,7 +20,7 @@ const Dashboard = () => {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
// console.log(res.data)
|
// console.log(res.data)
|
||||||
setUsers(res.data.users);
|
setUsers(res.data?.total_data);
|
||||||
};
|
};
|
||||||
const getAllsalescoordinator = async () => {
|
const getAllsalescoordinator = async () => {
|
||||||
let res = await axios.get(`/api/salescoordinator/getAll/`, {
|
let res = await axios.get(`/api/salescoordinator/getAll/`, {
|
||||||
|
@ -142,7 +142,7 @@ const WidgetsDropdown = ({
|
|||||||
<CWidgetStatsA
|
<CWidgetStatsA
|
||||||
className="mb-4"
|
className="mb-4"
|
||||||
color="primary"
|
color="primary"
|
||||||
value={<>{users.length}</>}
|
value={<>{users}</>}
|
||||||
title="Total Principal Distributor"
|
title="Total Principal Distributor"
|
||||||
/>
|
/>
|
||||||
</CCol>
|
</CCol>
|
||||||
|
Loading…
Reference in New Issue
Block a user