Skip to content

Commit ceebe9f

Browse files
committed
fix(user): preserve raw group type in add/edit
Update group option mapping in `CippAddEditUser` so `groupType` always uses `userGroups.groupType`, while `calculatedGroupType` is passed as a separate field. This avoids conflating calculated and raw group type values when handling selected groups.
1 parent 08ad625 commit ceebe9f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/components/CippFormPages/CippAddEditUser.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -907,7 +907,8 @@ const CippAddEditUser = (props) => {
907907
label: userGroups.DisplayName,
908908
value: userGroups.id,
909909
addedFields: {
910-
groupType: userGroups.calculatedGroupType || userGroups.groupType,
910+
groupType: userGroups.groupType,
911+
calculatedGroupType: userGroups.calculatedGroupType,
911912
},
912913
}))}
913914
creatable={false}

0 commit comments

Comments
 (0)