summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
Diffstat (limited to 'settings')
-rw-r--r--settings/src/components/userList.vue4
1 files changed, 3 insertions, 1 deletions
diff --git a/settings/src/components/userList.vue b/settings/src/components/userList.vue
index c51dce70e24..faf8aa0ce7a 100644
--- a/settings/src/components/userList.vue
+++ b/settings/src/components/userList.vue
@@ -189,7 +189,7 @@ export default {
* In case the user directly loaded the user list within a group
* the watch won't be triggered. We need to initialize it.
*/
- this.setNewUserDefaultGroup(this.$route.params.selectedGroup);
+ this.setNewUserDefaultGroup(this.selectedGroup);
/**
* Register search
@@ -339,6 +339,8 @@ export default {
resetForm() {
// revert form to original state
Object.assign(this.newUser, this.$options.data.call(this).newUser);
+ // reset group
+ this.setNewUserDefaultGroup(this.selectedGroup);
this.loading.all = false;
},
createUser() {