Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9e76ebc

Browse files
committed
Assign permission value in one spot
1 parente4f5bf7 commit9e76ebc

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

‎site/src/api/queries/organizations.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,10 +234,9 @@ export const organizationsPermissions = (
234234
constorgId=key.substring(0,index);
235235
constperm=key.substring(index+1);
236236
if(!acc[orgId]){
237-
acc[orgId]={[perm]:value};
238-
}else{
239-
acc[orgId][perm]=value;
237+
acc[orgId]={};
240238
}
239+
acc[orgId][perm]=value;
241240
returnacc;
242241
},
243242
{}asRecord<string,AuthorizationResponse>,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp