diff options
author | Stas Vilchik <stas.vilchik@sonarsource.com> | 2017-12-15 15:29:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-15 15:29:41 +0100 |
commit | 99c250bebeb529e77e6472750b47caee98c0edd3 (patch) | |
tree | be21932c60d73f6454545847c2a2744b041fe0c4 /server/sonar-web/src/main/js/apps/quality-profiles/details/ProfilePermissionsForm.tsx | |
parent | f26d933e1ecbd9ca104a6e1e0eb251462056aca8 (diff) | |
download | sonarqube-99c250bebeb529e77e6472750b47caee98c0edd3.tar.gz sonarqube-99c250bebeb529e77e6472750b47caee98c0edd3.zip |
update typescript and prettier, use shortcut fragment syntax (#2913)
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.tsx | 10 |
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) => { |