We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf75a55 commit 93936f1Copy full SHA for 93936f1
apps/settings/src/store/users.js
@@ -167,9 +167,11 @@ const mutations = {
167
state.userCount++ // increment Active Users count
168
169
user.groups.forEach(userGroup => {
170
- state.groups
171
- .find(groupSearch => groupSearch.id === userGroup)
172
- .usercount++ // increment group total count
+ const group = state.groups.find(groupSearch => groupSearch.id === userGroup)
+ if (!group) {
+ return
173
+ }
174
+ group.usercount++ // increment group total count
175
})
176
break
177
case 'remove':
0 commit comments