removed console
This commit is contained in:
parent
4a2dcd82d4
commit
9b742a2f7f
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user