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

@ -84,6 +84,7 @@ const ManageRole = ({ employeeId, onClosed }) => {
.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) => {