File tree Expand file tree Collapse file tree 3 files changed +3
-11
lines changed Expand file tree Collapse file tree 3 files changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -99,6 +99,7 @@ export default function AuthenticationTab({ account }: Props) {
99
99
. put ( {
100
100
id : account . id ,
101
101
settings : {
102
+ ...account . settings ,
102
103
peer_login_expiration_enabled : loginExpiration ,
103
104
peer_login_expiration : loginExpiration ? expiration : 86400 ,
104
105
extra : {
Original file line number Diff line number Diff line change @@ -108,10 +108,8 @@ export default function GroupsTab({ account }: Props) {
108
108
. put ( {
109
109
id : account . id ,
110
110
settings : {
111
+ ...account . settings ,
111
112
groups_propagation_enabled : groupsPropagation ,
112
- peer_login_expiration_enabled :
113
- account . settings . peer_login_expiration_enabled ,
114
- peer_login_expiration : account . settings . peer_login_expiration ,
115
113
jwt_groups_enabled : jwtGroupSync ,
116
114
jwt_groups_claim_name : isEmpty ( jwtGroupsClaimName )
117
115
? undefined
Original file line number Diff line number Diff line change @@ -33,15 +33,8 @@ export default function PermissionsTab({ account }: Props) {
33
33
. put ( {
34
34
id : account . id ,
35
35
settings : {
36
+ ...account . settings ,
36
37
regular_users_view_blocked : userViewBlocked ,
37
- groups_propagation_enabled :
38
- account . settings ?. groups_propagation_enabled ,
39
- peer_login_expiration_enabled :
40
- account . settings ?. peer_login_expiration_enabled ,
41
- peer_login_expiration : account . settings ?. peer_login_expiration ,
42
- jwt_groups_enabled : account . settings ?. jwt_groups_enabled ,
43
- jwt_groups_claim_name : account . settings ?. jwt_groups_claim_name ,
44
- jwt_allow_groups : account . settings ?. jwt_allow_groups ,
45
38
} ,
46
39
} )
47
40
. then ( ( ) => {
You can’t perform that action at this time.
0 commit comments