aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/organizations/actions.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/apps/organizations/actions.js')
-rw-r--r--server/sonar-web/src/main/js/apps/organizations/actions.js11
1 files changed, 8 insertions, 3 deletions
diff --git a/server/sonar-web/src/main/js/apps/organizations/actions.js b/server/sonar-web/src/main/js/apps/organizations/actions.js
index 1782325a68e..3d732bce808 100644
--- a/server/sonar-web/src/main/js/apps/organizations/actions.js
+++ b/server/sonar-web/src/main/js/apps/organizations/actions.js
@@ -175,7 +175,12 @@ export const updateOrganizationMemberGroups = (
...add.map(id => addUserToGroup(id, member.login)),
...remove.map(id => removeUserFromGroup(id, member.login))
];
- return Promise.all(promises).then(() => {
- dispatch(receiveUser({ ...member, groupCount: member.groupCount + add.length - remove.length }));
- }, onFail(dispatch));
+ return Promise.all(promises).then(
+ () => {
+ dispatch(
+ receiveUser({ ...member, groupCount: member.groupCount + add.length - remove.length })
+ );
+ },
+ onFail(dispatch)
+ );
};