fix(xo-web/vm/advanced): fix 'an error has occurred' (#5604)

Fixes #5592
This commit is contained in:
Rajaa.BARHTAOUI 2021-02-26 13:39:34 +01:00 committed by GitHub
parent c82cee25a5
commit 9271eb61ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 4 deletions

View File

@ -13,6 +13,8 @@
> Users must be able to say: “I had this issue, happy to know it's fixed”
- [VM/advanced] Fix `an error has occurred` in `Misc` section [#5592](https://github.com/vatesfr/xen-orchestra/issues/5592) (PR [#5604](https://github.com/vatesfr/xen-orchestra/pull/5604))
### Packages to release
> Packages will be released in the order they are here, therefore, they should
@ -32,3 +34,4 @@
- @xen-orchestra/backups minor
- xo-server minor
- xo-web patch

View File

@ -332,10 +332,12 @@ const Acls = decorate([
if (users === undefined || groups === undefined) {
return []
}
return rawAcls.map(({ subject, ...acl }) => ({
...acl,
subject: defined(users[subject], groups[subject]),
}))
return rawAcls
.map(({ subject, ...acl }) => ({
...acl,
subject: defined(users[subject], groups[subject]),
}))
.filter(({ subject }) => subject !== undefined)
},
},
}),