diff options
author | Grégoire Aubert <gregoire.aubert@sonarsource.com> | 2017-03-31 12:48:37 +0200 |
---|---|---|
committer | Grégoire Aubert <gregaubert@users.noreply.github.com> | 2017-03-31 14:56:31 +0200 |
commit | 2c6256d0b4a8daa9d63ea1d5acbdf5133828a037 (patch) | |
tree | a3c634284d66dc4e5b552aaf0befd3503c4cfad5 /server/sonar-web | |
parent | fe716c6dc43d4d7acb437136b1c87902e8ff0bc4 (diff) | |
download | sonarqube-2c6256d0b4a8daa9d63ea1d5acbdf5133828a037.tar.gz sonarqube-2c6256d0b4a8daa9d63ea1d5acbdf5133828a037.zip |
SONAR-8994 Fix groups count when the user is just added
Diffstat (limited to 'server/sonar-web')
-rw-r--r-- | server/sonar-web/src/main/js/apps/organizations/actions.js | 5 |
1 files changed, 4 insertions, 1 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 3d732bce808..a67d6103e3e 100644 --- a/server/sonar-web/src/main/js/apps/organizations/actions.js +++ b/server/sonar-web/src/main/js/apps/organizations/actions.js @@ -178,7 +178,10 @@ export const updateOrganizationMemberGroups = ( return Promise.all(promises).then( () => { dispatch( - receiveUser({ ...member, groupCount: member.groupCount + add.length - remove.length }) + receiveUser({ + ...member, + groupCount: (member.groupCount || 0) + add.length - remove.length + }) ); }, onFail(dispatch) |