fix(settings): Fix duplicated group options when editing account

Signed-off-by: Christopher Ng <chrng8@gmail.com>
pull/51336/head
Christopher Ng 1 month ago
parent 82f0957563
commit d32b76b9d4
  1. 4
      apps/settings/src/components/Users/UserRow.vue

@ -116,7 +116,7 @@
:value="userGroups"
label="name"
:no-wrap="true"
:create-option="(value) => ({ name: value, isCreating: true })"
:create-option="(value) => ({ id: value, name: value, isCreating: true })"
@search="searchGroups"
@option:created="createGroup"
@option:selected="options => addUserGroup(options.at(-1))"
@ -776,7 +776,7 @@ export default {
const userid = this.user.id
const gid = group.id
if (group.canAdd === false) {
return false
return
}
this.loading.groups = true
try {

Loading…
Cancel
Save