In Teams Tab when we Assign a project then this dropdown not change its state .

This commit is contained in:
Umesh Desai 2025-06-03 15:23:16 +05:30 committed by Vikas Nale
parent 412125e422
commit 3486a6bc3a

View File

@ -101,8 +101,16 @@ const Teams = ({ project }) => {
submitAllocations(items, true);
// Force switch to active view after assignment
setActiveEmployee(true);
setFilteredEmployees(employees.filter((emp) => emp.isActive));
// Also update dropdown select if needed
const dropdown = document.querySelector('select[name="DataTables_Table_0_length"]');
if (dropdown) dropdown.value = "true";
};
const getRole = (jobRoleId) => {
if (loading) return "Loading...";
if (!Array.isArray(empJobRoles)) return "Unassigned";