mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
fix UserImport missing await for file handling
This commit is contained in:
parent
b2d8310b25
commit
67cf6f46d8
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ export default {
|
|||
Object.assign(requestArgs, this.form)
|
||||
if (!requestArgs.delete) delete requestArgs.delete
|
||||
if (!requestArgs.update) delete requestArgs.update
|
||||
const data = formatFormData(requestArgs)
|
||||
const data = await formatFormData(requestArgs)
|
||||
api.post('users/import', data, { asFormData: true }).then(() => {
|
||||
// Reset all cached data related to users.
|
||||
this.$store.dispatch('RESET_CACHE_DATA', ['users', 'users_details', 'groups', 'permissions'])
|
||||
|
|
Loading…
Add table
Reference in a new issue