fixed previous role feature to current user role.
This commit is contained in:
parent
3777d4b7c5
commit
1ca337067a
@ -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) => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user