Small fix to also add the group when it's used (#4218)

This commit is contained in:
Erik Jan de Wit 2023-01-18 12:51:36 +01:00 committed by GitHub
parent 792cffc6f3
commit 6277c0bc06
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -203,7 +203,7 @@ export default function NewAttributeSettings() {
profileConfig.isRequired profileConfig.isRequired
? { required: profileConfig.required } ? { required: profileConfig.required }
: undefined, : undefined,
profileConfig.group ? { group: profileConfig.group } : undefined profileConfig.group ? { group: profileConfig.group } : { group: null }
); );
}); });

View file

@ -53,7 +53,7 @@ export const AttributesTab = () => {
config?.attributes!.splice(newIndex, 0, movedAttribute); config?.attributes!.splice(newIndex, 0, movedAttribute);
save( save(
{ attributes: config?.attributes! }, { attributes: config?.attributes!, groups: config?.groups },
{ {
successMessageKey: "realm-settings:updatedUserProfileSuccess", successMessageKey: "realm-settings:updatedUserProfileSuccess",
errorMessageKey: "realm-settings:updatedUserProfileError", errorMessageKey: "realm-settings:updatedUserProfileError",
@ -74,7 +74,7 @@ export const AttributesTab = () => {
continueButtonVariant: ButtonVariant.danger, continueButtonVariant: ButtonVariant.danger,
onConfirm: async () => { onConfirm: async () => {
save( save(
{ attributes: updatedAttributes! }, { attributes: updatedAttributes!, groups: config?.groups },
{ {
successMessageKey: "realm-settings:deleteAttributeSuccess", successMessageKey: "realm-settings:deleteAttributeSuccess",
errorMessageKey: "realm-settings:deleteAttributeError", errorMessageKey: "realm-settings:deleteAttributeError",