From 1ca337067ad52c874cfac925f091813f0b6f31b9 Mon Sep 17 00:00:00 2001 From: Pramod Mahajan Date: Sat, 26 Apr 2025 18:31:20 +0530 Subject: [PATCH] fixed previous role feature to current user role. --- src/components/Employee/ManageRole.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/Employee/ManageRole.jsx b/src/components/Employee/ManageRole.jsx index 714b5912..11dfdef0 100644 --- a/src/components/Employee/ManageRole.jsx +++ b/src/components/Employee/ManageRole.jsx @@ -83,7 +83,8 @@ const ManageRole = ({ employeeId, onClosed }) => { RolesRepository.createEmployeeRoles(result) .then((resp) => { showToast("Role assigned successfully", "success"); - setIsLoading(false); + setIsLoading( false ); + reset() onClosed(); }) .catch((err) => {