aboutsummaryrefslogtreecommitdiffstats
path: root/apps/settings/src/components/Users/NewUserDialog.vue
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2025-03-25 14:31:44 -0700
committerChristopher Ng <chrng8@gmail.com>2025-03-28 14:12:52 -0700
commitbf01685f3cf106085c2e8f1ce5c5018ec3b24e92 (patch)
treea27467b92e85bb757ae4bdf4ff94ac579a3d700f /apps/settings/src/components/Users/NewUserDialog.vue
parenta1bf497b220ffec26f009aa9a4f59ddf058ce60d (diff)
downloadnextcloud-server-bf01685f3cf106085c2e8f1ce5c5018ec3b24e92.tar.gz
nextcloud-server-bf01685f3cf106085c2e8f1ce5c5018ec3b24e92.zip
refactor(settings): Consolidate group formatting
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'apps/settings/src/components/Users/NewUserDialog.vue')
-rw-r--r--apps/settings/src/components/Users/NewUserDialog.vue5
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/settings/src/components/Users/NewUserDialog.vue b/apps/settings/src/components/Users/NewUserDialog.vue
index 7cd836b6c29..0e940c296f7 100644
--- a/apps/settings/src/components/Users/NewUserDialog.vue
+++ b/apps/settings/src/components/Users/NewUserDialog.vue
@@ -146,7 +146,6 @@ import NcSelect from '@nextcloud/vue/components/NcSelect'
import NcTextField from '@nextcloud/vue/components/NcTextField'
import { searchGroups } from '../../service/groups.ts'
-import { formatGroup } from '../../utils/groups.ts'
export default {
name: 'NewUserDialog',
@@ -292,8 +291,8 @@ export default {
offset: 0,
limit: 25,
})
- const groups = (await this.promise).data.ocs?.data?.groups ?? []
- this.availableGroups = groups.map(formatGroup)
+ const groups = await this.promise
+ this.availableGroups = groups
} catch (error) {
logger.error(t('settings', 'Failed to search groups'), { error })
}