pramod_Bug#126ManageRole - Role selection UI bugs, empty state handling, and async refactor #53
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "pramod_Bug#126ManageRole"
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?
I made the following improvements:
Prevented previously selected employee roles from displaying when switching between employees.
Roles now reset correctly in the form when a new employee is selected. Checkboxes reflect only the current employee’s assigned roles.
Removed the Zod validation that required at least one role. Users can now submit the form even when all roles are unchecked.
Replaced .then() chains with async/await for better readability and consistency in useEmployeeRoles.
Cleanup: Removed all console.log statements across related components.