We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 80e7cab commit 1120f16Copy full SHA for 1120f16
src/components/roles/role-user-selection-modal.tsx
@@ -58,7 +58,7 @@ export const RoleUserSelectionModal: React.FC<RoleUserSelectionModalProps> = ({
58
(item: PersonnelInfoResultData) => {
59
const isSelected = item.UserId === selectedUserId;
60
const fullName = `${item.FirstName} ${item.LastName}`.trim();
61
- const otherAssignment = currentAssignments.find((a) => a.userId === item.UserId && a.roleId !== currentRoleId);
+ const otherAssignment = currentAssignments.find((a) => a.userId === item.UserId && currentRoleId != null && a.roleId !== currentRoleId);
62
const isAssignedElsewhere = !!otherAssignment;
63
64
return (
0 commit comments