aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/quality-profiles/details/ProfilePermissionsForm.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/apps/quality-profiles/details/ProfilePermissionsForm.tsx')
-rw-r--r--server/sonar-web/src/main/js/apps/quality-profiles/details/ProfilePermissionsForm.tsx10
1 files changed, 3 insertions, 7 deletions
diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/details/ProfilePermissionsForm.tsx b/server/sonar-web/src/main/js/apps/quality-profiles/details/ProfilePermissionsForm.tsx
index 0732a1f0783..ba788305e51 100644
--- a/server/sonar-web/src/main/js/apps/quality-profiles/details/ProfilePermissionsForm.tsx
+++ b/server/sonar-web/src/main/js/apps/quality-profiles/details/ProfilePermissionsForm.tsx
@@ -99,13 +99,9 @@ export default class ProfilePermissionsForm extends React.PureComponent<Props, S
qualityProfile: profile.name,
selected: 'deselected'
};
- return Promise.all([
- searchUsers(parameters),
- searchGroups(parameters)
- ]).then(([usersResponse, groupsResponse]) => [
- ...usersResponse.users,
- ...groupsResponse.groups
- ]);
+ return Promise.all([searchUsers(parameters), searchGroups(parameters)]).then(
+ ([usersResponse, groupsResponse]) => [...usersResponse.users, ...groupsResponse.groups]
+ );
};
handleValueChange = (selected: User | Group) => {