This commit is contained in:
Sibunnayak 2024-10-18 17:10:35 +05:30
parent 7bba1cdc22
commit 957cfd5fd9
2 changed files with 2 additions and 2 deletions

View File

@ -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/`, {

View File

@ -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>