pramod_Bug-#203 -preserve selected employees when filtering by role in Daily Task Planning #91
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "pramod_Bug-#203"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Issue
In the AssignRole ,Daily Task Planning module, when a user applied a filter by designation (role), the previously selected employees were unintentionally removed. This occurred because the handleRoleChange function was resetting the selected employees list with setSelectedEmployees([]).
Fixed
Removed the setSelectedEmployees([]) line from the handleRoleChange function to retain the selected employees even after changing the designation filter. Now, filtering by role no longer clears existing selections.