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
|
profileConfig.isRequired
|
||||||
? { required: profileConfig.required }
|
? { required: profileConfig.required }
|
||||||
: undefined,
|
: 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);
|
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",
|
||||||
|
|
Loading…
Reference in a new issue