Small fix to also add the group when it's used (#4218)
This commit is contained in:
parent
792cffc6f3
commit
6277c0bc06
2 changed files with 3 additions and 3 deletions
|
@ -203,7 +203,7 @@ export default function NewAttributeSettings() {
|
|||
profileConfig.isRequired
|
||||
? { required: profileConfig.required }
|
||||
: undefined,
|
||||
profileConfig.group ? { group: profileConfig.group } : undefined
|
||||
profileConfig.group ? { group: profileConfig.group } : { group: null }
|
||||
);
|
||||
});
|
||||
|
||||
|
|
|
@ -53,7 +53,7 @@ export const AttributesTab = () => {
|
|||
config?.attributes!.splice(newIndex, 0, movedAttribute);
|
||||
|
||||
save(
|
||||
{ attributes: config?.attributes! },
|
||||
{ attributes: config?.attributes!, groups: config?.groups },
|
||||
{
|
||||
successMessageKey: "realm-settings:updatedUserProfileSuccess",
|
||||
errorMessageKey: "realm-settings:updatedUserProfileError",
|
||||
|
@ -74,7 +74,7 @@ export const AttributesTab = () => {
|
|||
continueButtonVariant: ButtonVariant.danger,
|
||||
onConfirm: async () => {
|
||||
save(
|
||||
{ attributes: updatedAttributes! },
|
||||
{ attributes: updatedAttributes!, groups: config?.groups },
|
||||
{
|
||||
successMessageKey: "realm-settings:deleteAttributeSuccess",
|
||||
errorMessageKey: "realm-settings:deleteAttributeError",
|
||||
|
|
Loading…
Reference in a new issue