fixed previous role feature to current user role.

This commit is contained in:
Pramod Mahajan 2025-04-26 18:31:20 +05:30
parent 3777d4b7c5
commit 1ca337067a

View File

@ -83,7 +83,8 @@ const ManageRole = ({ employeeId, onClosed }) => {
RolesRepository.createEmployeeRoles(result) RolesRepository.createEmployeeRoles(result)
.then((resp) => { .then((resp) => {
showToast("Role assigned successfully", "success"); showToast("Role assigned successfully", "success");
setIsLoading(false); setIsLoading( false );
reset()
onClosed(); onClosed();
}) })
.catch((err) => { .catch((err) => {