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

Merged
vikas.nale merged 1 commits from Kartik_Bug#442 into Issue_Jun_1W 2025-06-03 11:56:05 +00:00

View File

@ -90,18 +90,26 @@ const Teams = ({ project }) => {
}; };
const handleEmpAlicationFormSubmit = (allocaionObj) => { const handleEmpAlicationFormSubmit = (allocaionObj) => {
let items = allocaionObj.map((item) => { let items = allocaionObj.map((item) => {
return { return {
empID: item.empID, empID: item.empID,
jobRoleId: item.jobRoleId, jobRoleId: item.jobRoleId,
projectId: project.id, projectId: project.id,
status: true, status: true,
}; };
}); });
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";
};
submitAllocations( items ,true);
};
const getRole = (jobRoleId) => { const getRole = (jobRoleId) => {
if (loading) return "Loading..."; if (loading) return "Loading...";