removed console

This commit is contained in:
Pramod Mahajan 2025-04-28 12:04:33 +05:30
parent 4a2dcd82d4
commit 9b742a2f7f

View File

@ -12,7 +12,7 @@ const MapUsers = ({
onSubmit,
allocation,
}) => {
const { employeesList, loading, error } = useAllEmployees();
const { employeesList, loading:employeeLoading, error } = useAllEmployees();
const [selectedEmployees, setSelectedEmployees] = useState([]);
const [searchText, setSearchText] = useState("");
@ -106,7 +106,6 @@ const MapUsers = ({
showToast("Please select Employee", "error");
}
};
console.log(allocationEmployeesData)
return (
<>
<div className="modal-dialog modal-dialog-scrollable mx-sm-auto mx-1 modal-lg modal-simple modal-edit-user">
@ -132,13 +131,13 @@ console.log(allocationEmployeesData)
>
<thead></thead>
<tbody>
{loading && <p>Loading...</p>}
{(employeeLoading && allocationEmployeesData.length === 0 ) && <p>Loading...</p>}
{!loading &&
{!employeeLoading &&
allocationEmployeesData.length === 0 &&
filteredData.length === 0 && <p>No employees available.</p>}
{!loading &&
{!employeeLoading &&
allocationEmployeesData.length > 0 &&
filteredData.length === 0 && (
<p>No matching employees found.</p>