diff options
author | Louis Chemineau <louis@chmn.me> | 2023-09-29 12:14:28 -0700 |
---|---|---|
committer | Christopher Ng <chrng8@gmail.com> | 2023-09-29 12:14:28 -0700 |
commit | 65927daf20083f58b8f0efc899893c5a2f004402 (patch) | |
tree | 7982f94e6975699898b6624146b70a7cd1c3c18e | |
parent | 6bfbb475ff376bc5f9bafeb7753b5a5050016be6 (diff) | |
download | nextcloud-server-65927daf20083f58b8f0efc899893c5a2f004402.tar.gz nextcloud-server-65927daf20083f58b8f0efc899893c5a2f004402.zip |
Do not manipulate userCount when it is equal to 0
Signed-off-by: Louis Chemineau <louis@chmn.me>
(cherry picked from commit bd787e859344eae1466b3bdeb33839b4f82a5147)
-rw-r--r-- | apps/settings/src/store/users.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/settings/src/store/users.js b/apps/settings/src/store/users.js index ab8105ecb51..f780ecd88f5 100644 --- a/apps/settings/src/store/users.js +++ b/apps/settings/src/store/users.js @@ -159,6 +159,11 @@ const mutations = { }, // update active/disabled counts, groups counts updateUserCounts(state, { user, actionType }) { + // 0 is a special value + if (state.userCount === 0) { + return + } + const disabledGroup = state.groups.find(group => group.id === 'disabled') switch (actionType) { case 'enable': |