diff --git a/src/pages/users/Update.tsx b/src/pages/users/Update.tsx index c170e46..1e6dd25 100644 --- a/src/pages/users/Update.tsx +++ b/src/pages/users/Update.tsx @@ -90,7 +90,7 @@ const UpdateUser: FC = () => { profilePic: admin.profilePic, password: '', repeatPassword: '', - roleIds: admin.roles.map((role) => role.id), + roleIds: admin.roles.map((role: RoleItemType) => role.id), }) } // eslint-disable-next-line react-hooks/exhaustive-deps