From 9b742a2f7f84af60df2a10a3764228bc00eb2bc0 Mon Sep 17 00:00:00 2001 From: Pramod Mahajan Date: Mon, 28 Apr 2025 12:04:33 +0530 Subject: [PATCH] removed console --- src/components/Project/MapUsers.jsx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/components/Project/MapUsers.jsx b/src/components/Project/MapUsers.jsx index a8b63fa4..7d31b626 100644 --- a/src/components/Project/MapUsers.jsx +++ b/src/components/Project/MapUsers.jsx @@ -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 ( <>
@@ -132,13 +131,13 @@ console.log(allocationEmployeesData) > - {loading &&

Loading...

} + {(employeeLoading && allocationEmployeesData.length === 0 ) &&

Loading...

} - {!loading && + {!employeeLoading && allocationEmployeesData.length === 0 && filteredData.length === 0 &&

No employees available.

} - {!loading && + {!employeeLoading && allocationEmployeesData.length > 0 && filteredData.length === 0 && (

No matching employees found.