Skip to content

Commit 1120f16

Browse files
committed
RU-T47 PR#229 fix
1 parent 80e7cab commit 1120f16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/roles/role-user-selection-modal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export const RoleUserSelectionModal: React.FC<RoleUserSelectionModalProps> = ({
5858
(item: PersonnelInfoResultData) => {
5959
const isSelected = item.UserId === selectedUserId;
6060
const fullName = `${item.FirstName} ${item.LastName}`.trim();
61-
const otherAssignment = currentAssignments.find((a) => a.userId === item.UserId && a.roleId !== currentRoleId);
61+
const otherAssignment = currentAssignments.find((a) => a.userId === item.UserId && currentRoleId != null && a.roleId !== currentRoleId);
6262
const isAssignedElsewhere = !!otherAssignment;
6363

6464
return (

0 commit comments

Comments
 (0)